Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#1293 closed defect (fixed)

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

Reported by: django-bugs@… Owned by: adrian
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:

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')
 

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by anonymous

  • Component changed from Admin interface to Database wrapper

comment:2 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.