mirror of
https://github.com/django/django.git
synced 2025-04-01 12:06:43 +00:00
Revert "Improved AppRegistryNotReady message."
This reverts commit 6fa9fa91a5fcb228b3c385b35a2018b3821a447a. Aymeric: "I chose not to talk about django.setup() here on purpose. This will hardly always be the correct solution."
This commit is contained in:
parent
6fa9fa91a5
commit
8121860be4
@ -128,7 +128,7 @@ class Apps(object):
|
||||
Raises an exception if all models haven't been imported yet.
|
||||
"""
|
||||
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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user