comparison gpp/settings.py @ 189:db202792d9f5

Explicitly set session settings. Use the cache_db engine. Some minor tweaks to reduce some queries in forums.
author Brian Neal <bgneal@gmail.com>
date Thu, 01 Apr 2010 01:39:37 +0000
parents d293b423bdaf
children 6a5549c2efb5
comparison
equal deleted inserted replaced
188:d293b423bdaf 189:db202792d9f5
175 #CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS 175 #CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS
176 #CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX 176 #CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX
177 #CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY 177 #CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY
178 178
179 ####################################################################### 179 #######################################################################
180 # Sessions
181 #######################################################################
182 #SESSION_ENGINE = "django.contrib.sessions.backends.db"
183 SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
184 SESSION_COOKIE_AGE = 2 * 7 * 24 * 60 * 60 # 2 weeks in seconds
185 SESSION_COOKIE_DOMAIN = None
186 SESSION_COOKIE_NAME = 'sg101_sessionid'
187 SESSION_COOKIE_PATH = '/'
188 SESSION_COOKIE_SECURE = False
189 SESSION_EXPIRE_AT_BROWSER_CLOSE = False
190 SESSION_SAVE_EVERY_REQUEST = False
191
192 #######################################################################
180 # Tagging Specific Settings 193 # Tagging Specific Settings
181 ####################################################################### 194 #######################################################################
182 FORCE_LOWERCASE_TAGS = True 195 FORCE_LOWERCASE_TAGS = True
183 MAX_TAG_LENGTH = 50 196 MAX_TAG_LENGTH = 50
184 197