Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1293 closed defect (fixed)

Missing import of exception in db/models/loading.py

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: no UI/UX: no

Description

$ python manage.py install admin
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/local/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 1171, in execute_manager
    execute_from_command_line(action_mapping)
  File "/usr/local/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", 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/loading.py", line 27, in get_app
    raise ImproperlyConfigured, "App with label %s could not be found" % app_label
NameError: global name 'ImproperlyConfigured' is not defined
Patch:
Index: django/db/models/loading.py
===================================================================
--- django/db/models/loading.py (revision 2158)
+++ django/db/models/loading.py (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 by anonymous, 19 years ago

Component: Admin interfaceDatabase wrapper

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

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