mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Revert "Improved AppRegistryNotReady message."
This reverts commit154f5f0de1. Aymeric: "I chose not to talk about django.setup() here on purpose. This will hardly always be the correct solution." Backport of8121860be4from master
This commit is contained in:
@@ -128,7 +128,7 @@ class Apps(object):
|
|||||||
Raises an exception if all models haven't been imported yet.
|
Raises an exception if all models haven't been imported yet.
|
||||||
"""
|
"""
|
||||||
if not self.models_ready:
|
if not self.models_ready:
|
||||||
raise AppRegistryNotReady("Models aren't loaded yet. Ensure django.setup() has been called.")
|
raise AppRegistryNotReady("Models aren't loaded yet.")
|
||||||
|
|
||||||
def get_app_configs(self):
|
def get_app_configs(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user