mirror of
https://github.com/django/django.git
synced 2025-03-01 12:24:31 +00:00
[1.8.x] Fixed #25082 -- Documented where to register system checks.
Backport of 074a82f49b1443e66885ea861bbd2d2cb04af43e from master
This commit is contained in:
parent
2733c32ba9
commit
ad3a895432
@ -124,7 +124,9 @@ Registering and labeling checks
|
|||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
Lastly, your check function must be registered explicitly with system check
|
Lastly, your check function must be registered explicitly with system check
|
||||||
registry.
|
registry. Checks should be registered in a file that's loaded when your
|
||||||
|
application is loaded; for example, in the :meth:`AppConfig.ready()
|
||||||
|
<django.apps.AppConfig.ready>` method.
|
||||||
|
|
||||||
.. function:: register(*tags)(function)
|
.. function:: register(*tags)(function)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user