Explorar o código

Fixed #25082 -- Documented where to register system checks.

Tim Graham %!s(int64=9) %!d(string=hai) anos
pai
achega
074a82f49b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      docs/topics/checks.txt

+ 3 - 1
docs/topics/checks.txt

@@ -122,7 +122,9 @@ Registering and labeling checks
 -------------------------------
 
 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)