diff --git a/django/db/models/loading.py b/django/db/models/loading.py index 03cdcc23e7a89..8d673c4778ab1 100644 --- a/django/db/models/loading.py +++ b/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)