summaryrefslogtreecommitdiff
path: root/django/apps
diff options
context:
space:
mode:
Diffstat (limited to 'django/apps')
-rw-r--r--django/apps/registry.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py
index 408964a146..62650ca4bc 100644
--- a/django/apps/registry.py
+++ b/django/apps/registry.py
@@ -128,6 +128,7 @@ class Apps:
"""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.