Use newer version of django-redis-sessions, new settings format

This commit is contained in:
FinnStutzenstein 2018-08-15 09:50:20 +02:00
parent 4b6936572f
commit 78dab97673
2 changed files with 10 additions and 1 deletions

View File

@ -79,6 +79,15 @@ DATABASES = {
use_redis = False use_redis = False
if use_redis: 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 # Django Channels
# Unless you have only a small assembly uncomment the following lines to # Unless you have only a small assembly uncomment the following lines to

View File

@ -4,6 +4,6 @@
# Requirements for Redis and PostgreSQL support # Requirements for Redis and PostgreSQL support
asgi-redis>=1.3,<1.5 asgi-redis>=1.3,<1.5
django-redis>=4.7.0,<4.10 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 psycopg2-binary>=2.7,<2.8
txredisapi==1.4.4 txredisapi==1.4.4