Mercurial > public > sg101
comparison gpp/settings.py @ 174:e9c718065a25
Ticket #58; use Django 1.2's cached template loader.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 03 Mar 2010 04:04:11 +0000 |
parents | a88041a84957 |
children | 776028f4bced |
comparison
equal
deleted
inserted
replaced
173:a88041a84957 | 174:e9c718065a25 |
---|---|
56 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX | 56 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX |
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 callables 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 TEMPLATE_LOADERS = ( |
63 'django.template.loaders.filesystem.load_template_source', | 63 ('django.template.loaders.cached.Loader', ( |
64 'django.template.loaders.app_directories.load_template_source', | 64 'django.template.loaders.filesystem.Loader', |
65 # 'django.template.loaders.eggs.load_template_source', | 65 )), |
66 ) | 66 ) |
67 | 67 |
68 MIDDLEWARE_CLASSES = ( | 68 MIDDLEWARE_CLASSES = ( |
69 'django.middleware.common.CommonMiddleware', | 69 'django.middleware.common.CommonMiddleware', |
70 'django.contrib.sessions.middleware.SessionMiddleware', | 70 'django.contrib.sessions.middleware.SessionMiddleware', |