comparison gpp/settings.py @ 181:500e5875a306

Implementing #61: adding a forum topic subscription feature.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 01:07:47 +0000
parents aef00df91165
children 4e1abeb593c2
comparison
equal deleted inserted replaced
180:aef00df91165 181:500e5875a306
57 57
58 # Make this unique, and don't share it with anybody. 58 # Make this unique, and don't share it with anybody.
59 SECRET_KEY = local_settings.SECRET_KEY 59 SECRET_KEY = local_settings.SECRET_KEY
60 60
61 # List of Loader classes that know how to import templates from various sources. 61 # List of Loader classes that know how to import templates from various sources.
62 TEMPLATE_LOADERS = ( 62
63 ('django.template.loaders.cached.Loader', ( 63 if DEBUG:
64 TEMPLATE_LOADERS = (
64 'django.template.loaders.filesystem.Loader', 65 'django.template.loaders.filesystem.Loader',
65 'django.template.loaders.app_directories.Loader', 66 'django.template.loaders.app_directories.Loader',
66 )), 67 )
67 ) 68 else:
69 TEMPLATE_LOADERS = (
70 ('django.template.loaders.cached.Loader', (
71 'django.template.loaders.filesystem.Loader',
72 'django.template.loaders.app_directories.Loader',
73 )),
74 )
68 75
69 MIDDLEWARE_CLASSES = ( 76 MIDDLEWARE_CLASSES = (
70 'django.middleware.common.CommonMiddleware', 77 'django.middleware.common.CommonMiddleware',
71 'django.contrib.sessions.middleware.SessionMiddleware', 78 'django.contrib.sessions.middleware.SessionMiddleware',
72 'django.contrib.messages.middleware.MessageMiddleware', 79 'django.contrib.messages.middleware.MessageMiddleware',