diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-02-04 14:35:52 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2018-05-13 10:21:53 +0200 |
| commit | d65b0f72de8d35617fe0554ddabc950c7f323eef (patch) | |
| tree | 856b84e4b4200a89042ddbdd074c3015d0eda0f1 /django/apps | |
| parent | 1e0cbc72e5bcb1c1e235b3cd82a92800ed3c84b8 (diff) | |
Fixed #17379 -- Removed management commands deactivation of the locale.
Diffstat (limited to 'django/apps')
| -rw-r--r-- | django/apps/registry.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py index f522550d60..e01352b1de 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -124,6 +124,11 @@ class Apps: def check_apps_ready(self): """Raise an exception if all apps haven't been imported yet.""" if not self.apps_ready: + from django.conf import settings + # If "not ready" is due to unconfigured settings, accessing + # INSTALLED_APPS raises a more helpful ImproperlyConfigured + # exception. + settings.INSTALLED_APPS raise AppRegistryNotReady("Apps aren't loaded yet.") def check_models_ready(self): |
