Changeset 203
- Timestamp:
- 07/19/05 09:44:27 (3 years ago)
- Files:
-
- django/trunk/django/conf/settings.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/settings.py
r106 r203 3 3 4 4 Values 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 5 variable, and then from django.conf.global_settings; see the global settings file for 6 6 a list of all possible variables. 7 7 """ … … 11 11 from django.conf import global_settings 12 12 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?) 14 14 me = sys.modules[__name__] 15 15 … … 23 23 me.SETTINGS_MODULE = os.environ["DJANGO_SETTINGS_MODULE"] 24 24 except KeyError: 25 raise EnvironmentError, "Environ emnt variable DJANGO_SETTINGS_MODULE is undefined."25 raise EnvironmentError, "Environment variable DJANGO_SETTINGS_MODULE is undefined." 26 26 27 27 try: … … 36 36 # save DJANGO_SETTINGS_MODULE in case anyone in the future cares 37 37 me.SETTINGS_MODULE = os.environ.get('DJANGO_SETTINGS_MODULE', '') 38 38 39 39 # move the time zone info into os.environ 40 40 os.environ['TZ'] = me.TIME_ZONE
