Changeset 349

Show
Ignore:
Timestamp:
05/09/08 13:00:24 (7 months ago)
Author:
johnbywater
Message:

Changed Django debug setting to be drive from system dictionary.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dm/django/settings/main.py

    r239 r349  
    11from dm.ioc import RequiredFeature 
    22from dm import dictionarywords 
    3 from dm.debug import Debug 
    43 
    54dictionary = RequiredFeature('SystemDictionary') 
     
    76# 
    87## Settings commonly defined in the system dictionary. 
    9  
    10 DEBUG = True 
    11  
    12 TEMPLATE_DIRS = ( 
    13     dictionary[dictionarywords.DJANGO_TEMPLATES_DIR], 
    14 
    15  
     8DEBUG = dictionary[dictionarywords.SYSTEM_MODE] != 'production', 
     9TEMPLATE_DIRS = (dictionary[dictionarywords.DJANGO_TEMPLATES_DIR],) 
    1610TIME_ZONE = dictionary[dictionarywords.TIMEZONE] 
    17  
    18 # todo: get this from the system dictionary 
    1911SECRET_KEY = dictionary[dictionarywords.DJANGO_SECRET_KEY] 
    2012