mirror of
https://github.com/django/django.git
synced 2025-01-26 10:09:42 +00:00
[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
This commit is contained in:
parent
4bd7411edf
commit
994274ea83
@ -379,11 +379,6 @@ pre_migrate
|
|||||||
Sent by the :djadmin:`migrate` command before it starts to install an
|
Sent by the :djadmin:`migrate` command before it starts to install an
|
||||||
application. It's not emitted for applications that lack a ``models`` module.
|
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:
|
Arguments sent with this signal:
|
||||||
|
|
||||||
``sender``
|
``sender``
|
||||||
@ -424,11 +419,6 @@ pre_syncdb
|
|||||||
Sent by the :djadmin:`syncdb` command before it starts to install an
|
Sent by the :djadmin:`syncdb` command before it starts to install an
|
||||||
application.
|
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:
|
Arguments sent with this signal:
|
||||||
|
|
||||||
``sender``
|
``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
|
:djadmin:`flush` command. It's not emitted for applications that lack a
|
||||||
``models`` module.
|
``models`` module.
|
||||||
|
|
||||||
Any handlers that listen to this signal need to be written in a particular
|
It is important that handlers of this signal perform idempotent changes (e.g.
|
||||||
place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
|
no database alterations) as this may cause the :djadmin:`flush` management
|
||||||
handlers are registered anywhere else they may not be loaded by
|
command to fail if it also ran during the :djadmin:`migrate` command.
|
||||||
: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.
|
|
||||||
|
|
||||||
Arguments sent with this signal:
|
Arguments sent with this signal:
|
||||||
|
|
||||||
@ -532,13 +518,9 @@ post_syncdb
|
|||||||
Sent by the :djadmin:`syncdb` command after it installs an application, and the
|
Sent by the :djadmin:`syncdb` command after it installs an application, and the
|
||||||
:djadmin:`flush` command.
|
:djadmin:`flush` command.
|
||||||
|
|
||||||
Any handlers that listen to this signal need to be written in a particular
|
It is important that handlers of this signal perform idempotent changes (e.g.
|
||||||
place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
|
no database alterations) as this may cause the :djadmin:`flush` management
|
||||||
handlers are registered anywhere else they may not be loaded by
|
command to fail if it also ran during the :djadmin:`syncdb` command.
|
||||||
: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.
|
|
||||||
|
|
||||||
Arguments sent with this signal:
|
Arguments sent with this signal:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user