|
@@ -142,14 +142,14 @@ Now, our ``my_callback`` function will be called each time a request finishes.
|
|
|
|
|
|
In practice, signal handlers are usually defined in a ``signals``
|
|
|
submodule of the application they relate to. Signal receivers are
|
|
|
- connected in the :meth:`~django.apps.AppConfig.setup` method of your
|
|
|
+ connected in the :meth:`~django.apps.AppConfig.ready` method of your
|
|
|
application configuration class. If you're using the :func:`receiver`
|
|
|
decorator, simply import the ``signals`` submodule inside
|
|
|
- :meth:`~django.apps.AppConfig.setup`.
|
|
|
+ :meth:`~django.apps.AppConfig.ready`.
|
|
|
|
|
|
.. versionchanged:: 1.7
|
|
|
|
|
|
- Since :meth:`~django.apps.AppConfig.setup` didn't exist in previous
|
|
|
+ Since :meth:`~django.apps.AppConfig.ready` didn't exist in previous
|
|
|
versions of Django, signal registration usually happened in the
|
|
|
``models`` module.
|
|
|
|