summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-30 13:24:24 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-30 22:11:17 +0100
commitc31d7c48139260ccb72deda9b0033db0db86e84a (patch)
treee0d45e90a76a9adef3e20355f2a638fb7f1411b0 /docs/ref
parente187caa3afd7d292353fb32be1647da2cf0968da (diff)
Updated advice on connecting signals at startup.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index ece6990aa7..2e9f6ccea6 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -354,6 +354,12 @@ Sent whenever a model class has been "prepared" -- that is, once model has
been defined and registered with Django's model system. Django uses this
signal internally; it's not generally used in third-party applications.
+Since this signal is sent during the app registry population process, and
+:meth:`AppConfig.setup() <django.apps.AppConfig.setup>` runs after the app
+registry is fully populated, receivers cannot be connected in that method.
+One possibility is to connect them ``AppConfig.__init__()`` instead, taking
+care not to import models or trigger calls to the app registry.
+
Arguments that are sent with this signal:
``sender``