Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit f44c4a5d0f09367ccc032f77accc7826cc4d12e9 1 parent 4f109fc
@PaulMcMillan PaulMcMillan authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/models/loading.py
View
1  django/db/models/loading.py
@@ -146,6 +146,7 @@ def get_app(self, app_label, emptyOK=False):
if mod is None:
if emptyOK:
return None
+ raise ImproperlyConfigured("App with label %s is missing a models.py module.")
else:
return mod
raise ImproperlyConfigured("App with label %s could not be found" % app_label)
Please sign in to comment.
Something went wrong with that request. Please try again.