mirror of
https://github.com/django/django.git
synced 2025-03-01 12:24:31 +00:00
Improved AppRegistryNotReady message.
This commit is contained in:
parent
ae5dbe5aa8
commit
6fa9fa91a5
@ -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.")
|
raise AppRegistryNotReady("Models aren't loaded yet. Ensure django.setup() has been called.")
|
||||||
|
|
||||||
def get_app_configs(self):
|
def get_app_configs(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user