Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/settings.py Sun Mar 21 20:33:33 2010 +0000 +++ b/gpp/settings.py Sun Mar 28 01:07:47 2010 +0000 @@ -59,12 +59,19 @@ SECRET_KEY = local_settings.SECRET_KEY # List of Loader classes that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - ('django.template.loaders.cached.Loader', ( + +if DEBUG: + TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', - )), -) + ) +else: + TEMPLATE_LOADERS = ( + ('django.template.loaders.cached.Loader', ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + )), + ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware',