Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#1293 closed defect (fixed)

Missing import of exception in db/models/

Reported by: django-bugs@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


$ python install admin
Traceback (most recent call last):
  File "", line 11, in ?
  File "/usr/local/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/", line 1171, in execute_manager
  File "/usr/local/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/", line 1130, in execute_from_command_line
    mod_list = [models.get_app(app_label) for app_label in args[1:]]
  File "/usr/local/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/db/models/", line 27, in get_app
    raise ImproperlyConfigured, "App with label %s could not be found" % app_label
NameError: global name 'ImproperlyConfigured' is not defined
Index: django/db/models/
--- django/db/models/ (revision 2158)
+++ django/db/models/ (working copy)
@@ -1,6 +1,7 @@
 "Utilities for loading models and the modules that contain them."
 from django.conf import settings
+from django.core.exceptions import ImproperlyConfigured
 __all__ = ('get_apps', 'get_app', 'get_models', 'get_model')

Change History (2)

comment:1 Changed 12 years ago by anonymous

Component: Admin interfaceDatabase wrapper

comment:2 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2164]) magic-removal: Fixed #1293 -- Added missing exception. Thanks,

Note: See TracTickets for help on using tickets.
Back to Top