Don't cache templates in development.

(imported from commit 986df6aecb7e638eb0e017654553e812ac6e0ed2)
This commit is contained in:
Tim Abbott
2013-11-15 14:51:37 -05:00
parent 30e4de6767
commit f941644099

View File

@@ -142,11 +142,14 @@ USE_X_FORWARDED_HOST = True
# List of callables that know how to import templates from various sources. # List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = ( TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', ( 'django.template.loaders.filesystem.Loader',
'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader',
'django.template.loaders.app_directories.Loader', )
)), if DEPLOYED:
) TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader',
TEMPLATE_LOADERS),
)
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
# Our logging middleware should be the first middleware item. # Our logging middleware should be the first middleware item.