1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00

Fixed #7198 -- Improved error message when missing models.py. Thanks Silver_Ghost and for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2011-09-22 05:10:52 +00:00
parent 4f109fcbff
commit f44c4a5d0f

View File

@ -146,6 +146,7 @@ class AppCache(object):
if mod is None: if mod is None:
if emptyOK: if emptyOK:
return None return None
raise ImproperlyConfigured("App with label %s is missing a models.py module.")
else: else:
return mod return mod
raise ImproperlyConfigured("App with label %s could not be found" % app_label) raise ImproperlyConfigured("App with label %s could not be found" % app_label)