Django

Code

Changeset 203

Show
Ignore:
Timestamp:
07/19/05 09:44:27 (3 years ago)
Author:
adrian
Message:

Fixed #83 -- Fixed spelling error in django.conf.settings. Nice catch, Manuzhai!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/settings.py

    r106 r203  
    33 
    44Values will be read from the module specified by the DJANGO_SETTINGS_MODULE environment 
    5 variable, and then from django.conf.global_settings; see the global settings file for  
     5variable, and then from django.conf.global_settings; see the global settings file for 
    66a list of all possible variables. 
    77""" 
     
    1111from django.conf import global_settings 
    1212 
    13 # get a reference to this module (why isn't there a __module__ magic var?)  
     13# get a reference to this module (why isn't there a __module__ magic var?) 
    1414me = sys.modules[__name__] 
    1515 
     
    2323    me.SETTINGS_MODULE = os.environ["DJANGO_SETTINGS_MODULE"] 
    2424except KeyError: 
    25     raise EnvironmentError, "Environemnt variable DJANGO_SETTINGS_MODULE is undefined." 
     25    raise EnvironmentError, "Environment variable DJANGO_SETTINGS_MODULE is undefined." 
    2626 
    2727try: 
     
    3636# save DJANGO_SETTINGS_MODULE in case anyone in the future cares 
    3737me.SETTINGS_MODULE = os.environ.get('DJANGO_SETTINGS_MODULE', '') 
    38      
     38 
    3939# move the time zone info into os.environ 
    4040os.environ['TZ'] = me.TIME_ZONE