Changeset 120
- Timestamp:
- 07/16/05 17:12:24 (3 years ago)
- Files:
-
- django/trunk/django/core/exceptions.py (modified) (1 diff)
- django/trunk/django/core/handler.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/exceptions.py
r55 r120 25 25 "This middleware is not used in this server configuration" 26 26 pass 27 28 class ImproperlyConfigured(Exception): 29 "Django is somehow improperly configured" 30 pass django/trunk/django/core/handler.py
r57 r120 5 5 # settings) until after CoreHandler has been called; otherwise os.environ 6 6 # won't be set up correctly (with respect to settings). 7 8 class ImproperlyConfigured(Exception):9 pass10 7 11 8 class CoreHandler: … … 58 55 mod = __import__(mw_module, '', '', ['']) 59 56 except ImportError, e: 60 raise ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)57 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) 61 58 try: 62 59 mw_class = getattr(mod, mw_classname) 63 60 except AttributeError: 64 raise ImproperlyConfigured, 'Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname)61 raise exceptions.ImproperlyConfigured, 'Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname) 65 62 66 63 try:
