diff --git a/django/db/models/loading.py b/django/db/models/loading.py index 03cdcc23e7..8d673c4778 100644 --- a/django/db/models/loading.py +++ b/django/db/models/loading.py @@ -146,6 +146,7 @@ class AppCache(object): 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)