Mercurial > public > sg101
comparison gpp/settings.py @ 248:0a875f679f07
Cleaning up setings.py prior to deploying beta site.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 18 Sep 2010 23:36:32 +0000 |
parents | e4dc0b649fcb |
children | 8fd4984d5c3b |
comparison
equal
deleted
inserted
replaced
247:6ed2932901fa | 248:0a875f679f07 |
---|---|
102 TEMPLATE_DIRS = ( | 102 TEMPLATE_DIRS = ( |
103 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | 103 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
104 # Always use forward slashes, even on Windows. | 104 # Always use forward slashes, even on Windows. |
105 # Don't forget to use absolute paths, not relative paths. | 105 # Don't forget to use absolute paths, not relative paths. |
106 os.path.join(project_path, 'templates'), | 106 os.path.join(project_path, 'templates'), |
107 '/home/brian/coding/python/django/django-elsewhere/elsewhere/templates', | |
108 ) | 107 ) |
109 | 108 |
110 TEMPLATE_CONTEXT_PROCESSORS = ( | 109 TEMPLATE_CONTEXT_PROCESSORS = ( |
111 "django.contrib.auth.context_processors.auth", | 110 "django.contrib.auth.context_processors.auth", |
112 "django.core.context_processors.debug", | 111 "django.core.context_processors.debug", |
176 ####################################################################### | 175 ####################################################################### |
177 # Caching | 176 # Caching |
178 ####################################################################### | 177 ####################################################################### |
179 if local_settings.USE_CACHE: | 178 if local_settings.USE_CACHE: |
180 CACHE_BACKEND = local_settings.CACHE_BACKEND | 179 CACHE_BACKEND = local_settings.CACHE_BACKEND |
181 #CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS | 180 CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS |
182 #CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX | 181 CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX |
183 #CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY | 182 CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY |
184 | 183 |
185 ####################################################################### | 184 ####################################################################### |
186 # Sessions | 185 # Sessions |
187 ####################################################################### | 186 ####################################################################### |
188 #SESSION_ENGINE = "django.contrib.sessions.backends.db" | |
189 SESSION_ENGINE = "django.contrib.sessions.backends.cached_db" | 187 SESSION_ENGINE = "django.contrib.sessions.backends.cached_db" |
190 SESSION_COOKIE_AGE = 2 * 7 * 24 * 60 * 60 # 2 weeks in seconds | 188 SESSION_COOKIE_AGE = 2 * 7 * 24 * 60 * 60 # 2 weeks in seconds |
191 SESSION_COOKIE_DOMAIN = None | 189 SESSION_COOKIE_DOMAIN = None |
192 SESSION_COOKIE_NAME = 'sg101_sessionid' | 190 SESSION_COOKIE_NAME = 'sg101_sessionid' |
193 SESSION_COOKIE_PATH = '/' | 191 SESSION_COOKIE_PATH = '/' |