summaryrefslogtreecommitdiff
path: root/sublab_project
diff options
context:
space:
mode:
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: