Author: PaulM
Date: 2011-09-21 22:10:52 -0700 (Wed, 21 Sep 2011)
New Revision: 16876

Modified:
   django/trunk/django/db/models/loading.py
Log:
Fixed #7198 -- Improved error message when missing models.py. Thanks 
Silver_Ghost and for the patch.


Modified: django/trunk/django/db/models/loading.py
===================================================================
--- django/trunk/django/db/models/loading.py    2011-09-22 04:52:43 UTC (rev 
16875)
+++ django/trunk/django/db/models/loading.py    2011-09-22 05:10:52 UTC (rev 
16876)
@@ -146,6 +146,7 @@
                     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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to