[1.7.x] Improved AppRegistryNotReady message.

Backport of 6fa9fa91a5 from master
This commit is contained in:
Collin Anderson 2014-10-03 09:49:28 -04:00 committed by Tim Graham
parent d2f01afed0
commit 154f5f0de1
1 changed files with 1 additions and 1 deletions

View File

@ -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.")
raise AppRegistryNotReady("Models aren't loaded yet. Ensure django.setup() has been called.")
def get_app_configs(self):
"""