From 01eeffc6fd793f66dc32e5099a61736cc06d2d20 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Sat, 30 May 2015 04:23:26 -0700 Subject: [PATCH] use redis for sessions too! --- flashy/settings.py | 3 +++ requirements.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flashy/settings.py b/flashy/settings.py index 54597e4..2695675 100644 --- a/flashy/settings.py +++ b/flashy/settings.py @@ -171,3 +171,6 @@ CACHES = { SWAGGER_SETTINGS = { 'doc_expansion': 'list' } + +WS4REDIS_EXPIRE = 0 +SESSION_ENGINE = 'redis_sessions.session' diff --git a/requirements.txt b/requirements.txt index 16e8f7f..d48568d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,4 @@ coverage django-rest-swagger pytz django-extensions -django-filter \ No newline at end of file +django-redis-sessions \ No newline at end of file -- 1.9.1