1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Fixed #17379 -- Removed management commands deactivation of the locale.

This commit is contained in:
Claude Paroz
2013-02-04 14:35:52 +01:00
parent 1e0cbc72e5
commit d65b0f72de
16 changed files with 72 additions and 127 deletions

View File

@@ -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):