documentation: new best place to put the signal handler registration
|Reported by:||un33k||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 14 months ago by un33k
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 12 months ago by timo
comment:6 Changed 12 months ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed