Ticket #7198: sql_proper_err_msg.diff

File sql_proper_err_msg.diff, 598 bytes (added by Silver_Ghost, 13 years ago)

Creates proper error message for app without models.py module.

  • django/db/models/loading.py

     
    147147                    if mod is None:
    148148                        if emptyOK:
    149149                            return None
     150                        raise ImproperlyConfigured("App with label %s hasn't models.py module" % app_label)
    150151                    else:
    151152                        return mod
    152153            raise ImproperlyConfigured("App with label %s could not be found" % app_label)
Back to Top