diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-11-23 18:18:42 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-11-23 18:47:47 +0100 |
| commit | 42fef2944640659b95679381a9c8f02b3be884b1 (patch) | |
| tree | e15855765cdc2718350dcd23c50bf4bf03ba73ae /django/dispatch | |
| parent | e112654fc81ddb3fbffbb8382b004d69367a85fe (diff) | |
Fixed #21486 -- Prevented settings config in signal connection
This was particularly problematic in the chain get_wsgi_application
-> db.connections import -> signal connection -> settings configuration.
Thanks Jon Dufresne for the report.
Diffstat (limited to 'django/dispatch')
| -rw-r--r-- | django/dispatch/dispatcher.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py index a8cdc93b21..d26433a885 100644 --- a/django/dispatch/dispatcher.py +++ b/django/dispatch/dispatcher.py @@ -85,7 +85,7 @@ class Signal(object): from django.conf import settings # If DEBUG is on, check that we got a good receiver - if settings.DEBUG: + if settings.configured and settings.DEBUG: import inspect assert callable(receiver), "Signal receivers must be callable." |
