﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1293	Missing import of exception in db/models/loading.py	django-bugs@…	Adrian Holovaty	"{{{
$ 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')
 
}}}
"	defect	closed	Database layer (models, ORM)	magic-removal	normal	fixed			Design decision needed	0	0	0	0	0	0
