Django

Code

Changeset 120

Show
Ignore:
Timestamp:
07/16/05 17:12:24 (3 years ago)
Author:
adrian
Message:

Moved django.core.handler.ImproperlyConfigured? into django.core.exceptions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/exceptions.py

    r55 r120  
    2525    "This middleware is not used in this server configuration" 
    2626    pass 
     27 
     28class ImproperlyConfigured(Exception): 
     29    "Django is somehow improperly configured" 
     30    pass 
  • django/trunk/django/core/handler.py

    r57 r120  
    55# settings) until after CoreHandler has been called; otherwise os.environ 
    66# won't be set up correctly (with respect to settings). 
    7  
    8 class ImproperlyConfigured(Exception): 
    9     pass 
    107 
    118class CoreHandler: 
     
    5855                mod = __import__(mw_module, '', '', ['']) 
    5956            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) 
    6158            try: 
    6259                mw_class = getattr(mod, mw_classname) 
    6360            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) 
    6562 
    6663            try: