Skip to content

Commit

Permalink
Fixed django#7198 -- Improved error message when missing models.py. T…
Browse files Browse the repository at this point in the history
…hanks 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
PaulMcMillan committed Sep 22, 2011
1 parent 4f109fc commit f44c4a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/db/models/loading.py
Expand Up @@ -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)
Expand Down

0 comments on commit f44c4a5

Please sign in to comment.