From 78dab97673058e5372858f02983aab08fef0713e Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 15 Aug 2018 09:50:20 +0200 Subject: [PATCH] Use newer version of django-redis-sessions, new settings format --- openslides/utils/settings.py.tpl | 9 +++++++++ requirements_big_mode.txt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/openslides/utils/settings.py.tpl b/openslides/utils/settings.py.tpl index 9f0d3b77e..c4d2252d5 100644 --- a/openslides/utils/settings.py.tpl +++ b/openslides/utils/settings.py.tpl @@ -79,6 +79,15 @@ DATABASES = { use_redis = False if use_redis: + # Redis configuration for django-redis-session. Keep this synchronized to + # the caching settings + + SESSION_REDIS = { + 'host': '127.0.0.1', + 'post': 6379, + 'db': 0, + } + # Django Channels # Unless you have only a small assembly uncomment the following lines to diff --git a/requirements_big_mode.txt b/requirements_big_mode.txt index 689f75ab9..bc4ea3d4d 100644 --- a/requirements_big_mode.txt +++ b/requirements_big_mode.txt @@ -4,6 +4,6 @@ # Requirements for Redis and PostgreSQL support asgi-redis>=1.3,<1.5 django-redis>=4.7.0,<4.10 -django-redis-sessions>=0.5.6,<0.7 +django-redis-sessions>=0.6.1,<0.7 psycopg2-binary>=2.7,<2.8 txredisapi==1.4.4