summaryrefslogtreecommitdiff
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
parenta1cae76c0fe6b36b0ace12f04eda516b8e02987e (diff)
Added Redis session backend.
-rw-r--r--conf/dev_settings.py2
-rw-r--r--requirements.txt1
-rw-r--r--sublab_project/settings.py8
3 files changed, 11 insertions, 0 deletions
diff --git a/conf/dev_settings.py b/conf/dev_settings.py
index bd03dc3..6d3c702 100644
--- a/conf/dev_settings.py
+++ b/conf/dev_settings.py
@@ -26,3 +26,5 @@ LOGGING['loggers'].update({
'level': 'DEBUG'
}
})
+
+SESSION_ENGINE = 'django.contrib.sessions.backends.db'
diff --git a/requirements.txt b/requirements.txt
index 05683b0..b052966 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -9,3 +9,4 @@ icalendar==2.2
python-dateutil==1.5
django-celery==2.4.2
redis==2.4.10
+django-redisession==0.2
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: