documentation: new best place to put the signal handler registration
|Reported by:||Val Neekman||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The new best place for registering the signal handlers are in the ready() of the AppConfig.
This way, the signals properly emit with the server starts and also via the django-admin shell.
The documentation would benefit from an update indicating the new feature of Django 1.7.
The following section may require the update.
"Any handlers that listen to this signal need to be written in a particular place: a management module in one of your INSTALLED_APPS. If handlers are registered anywhere else they may not be loaded by migrate."
Could be changed to:
"Any handlers that listen to this signal need to be written in a particular place: the AppConfig.ready() within the apps module in one of your INSTALLED_APPS. If handlers are registered anywhere else they may not be loaded by migrate."
Change History (8)
comment:1 Changed 3 years ago by
|Patch needs improvement:||unset|