summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-26 10:39:52 -0400
committerTim Graham <timograham@gmail.com>2014-03-26 10:41:45 -0400
commit994274ea8315282484bc24aa403b2fd12b5bdeec (patch)
treec9a5d39248e29f7f865128c9282131a959b7877c /docs/ref
parent4bd7411edf21f235a0a2b67f170a2bad8c37518c (diff)
[1.7.x] Fixed #22029 -- Removed obsolete advice on registering migrate/syncdb signal handlers.
All signals should now be registered in AppConfig.ready(). Thanks un33k for the report. Backport of 5233b36693 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt30
1 files changed, 6 insertions, 24 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index 25def4490d..f6a227532c 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -379,11 +379,6 @@ pre_migrate
Sent by the :djadmin:`migrate` command before it starts to install an
application. It's not emitted for applications that lack a ``models`` module.
-Any handlers that listen to this signal need to be written in a particular
-place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
-handlers are registered anywhere else they may not be loaded by
-:djadmin:`migrate`.
-
Arguments sent with this signal:
``sender``
@@ -424,11 +419,6 @@ pre_syncdb
Sent by the :djadmin:`syncdb` command before it starts to install an
application.
-Any handlers that listen to this signal need to be written in a particular
-place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
-handlers are registered anywhere else they may not be loaded by
-:djadmin:`syncdb`.
-
Arguments sent with this signal:
``sender``
@@ -472,13 +462,9 @@ Sent by the :djadmin:`migrate` command after it installs an application, and the
:djadmin:`flush` command. It's not emitted for applications that lack a
``models`` module.
-Any handlers that listen to this signal need to be written in a particular
-place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
-handlers are registered anywhere else they may not be loaded by
-:djadmin:`migrate`. It is important that handlers of this signal perform
-idempotent changes (e.g. no database alterations) as this may cause the
-:djadmin:`flush` management command to fail if it also ran during the
-:djadmin:`migrate` command.
+It is important that handlers of this signal perform idempotent changes (e.g.
+no database alterations) as this may cause the :djadmin:`flush` management
+command to fail if it also ran during the :djadmin:`migrate` command.
Arguments sent with this signal:
@@ -532,13 +518,9 @@ post_syncdb
Sent by the :djadmin:`syncdb` command after it installs an application, and the
:djadmin:`flush` command.
-Any handlers that listen to this signal need to be written in a particular
-place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
-handlers are registered anywhere else they may not be loaded by
-:djadmin:`syncdb`. It is important that handlers of this signal perform
-idempotent changes (e.g. no database alterations) as this may cause the
-:djadmin:`flush` management command to fail if it also ran during the
-:djadmin:`syncdb` command.
+It is important that handlers of this signal perform idempotent changes (e.g.
+no database alterations) as this may cause the :djadmin:`flush` management
+command to fail if it also ran during the :djadmin:`syncdb` command.
Arguments sent with this signal: