From dbde19828fd935d3fcb6524145e7702b65184b9e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 9 Aug 2010 13:33:09 -0500 Subject: Enable the cached_db session engine by default This will work out well when using memcached in production, and should just fall back to using the DB when developing locally with no cache or any other sort of caching. Signed-off-by: Dan McGee --- settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index f58c7ff..b1ad20e 100644 --- a/settings.py +++ b/settings.py @@ -89,6 +89,8 @@ AUTH_PROFILE_MODULE = 'main.UserProfile' MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' +SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' + INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', @@ -109,4 +111,3 @@ INSTALLED_APPS = ( ) # vim: set ts=4 sw=4 et: - -- cgit v1.2.3-24-g4f1b