root(minor): fix redis password not being loaded

This commit is contained in:
Langhammer, Jens 2019-10-01 15:30:35 +02:00
parent bee5c200b6
commit aec1ccd88d
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ REST_FRAMEWORK = {
CACHES = { CACHES = {
"default": { "default": {
"BACKEND": "django_redis.cache.RedisCache", "BACKEND": "django_redis.cache.RedisCache",
"LOCATION": f"redis://{CONFIG.y('redis.host')}:6379/{CONFIG.y('redis.cache_db')}", "LOCATION": (f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redis.host')}:6379"
f"/{CONFIG.y('redis.cache_db')}"),
"OPTIONS": { "OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient", "CLIENT_CLASS": "django_redis.client.DefaultClient",
} }