summaryrefslogtreecommitdiff
path: root/sublab_project
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <info@keimlink.de>2012-01-08 17:09:53 +0100
committerMarkus Zapke-Grùˆndemann <info@keimlink.de>2012-01-08 17:09:53 +0100
commitd8e87d205cfda78460c7078dd980a22572b9111b (patch)
tree493a91254a3c0273a6dc4c4d3c214fdaaec12c3c /sublab_project
parenta1cae76c0fe6b36b0ace12f04eda516b8e02987e (diff)
Added Redis session backend.
Diffstat (limited to 'sublab_project')
-rw-r--r--sublab_project/settings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sublab_project/settings.py b/sublab_project/settings.py
index d92bf5b..bb17fc4 100644
--- a/sublab_project/settings.py
+++ b/sublab_project/settings.py
@@ -138,6 +138,7 @@ INSTALLED_APPS = (
'djcelery',
'calendarium',
'accounts',
+ 'redisession',
)
# A sample logging configuration. The only tangible logging
@@ -209,6 +210,13 @@ CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CALENDARIUM_IMPORT_URL = 'https://sublab.org:5232/calendars/events'
+SESSION_ENGINE = 'redisession.backend'
+
+REDIS_SESSION_CONFIG = {
+ 'SERVER': {'db': 1},
+ 'COMPRESS_LIB': '',
+}
+
try:
from local_settings import *
except ImportError: