From aec1ccd88d2b4b7932cc587ec6b07c6018de9ab1 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Tue, 1 Oct 2019 15:30:35 +0200 Subject: [PATCH] root(minor): fix redis password not being loaded --- passbook/root/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passbook/root/settings.py b/passbook/root/settings.py index 5059c56a9..f3d24def0 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -100,7 +100,8 @@ REST_FRAMEWORK = { CACHES = { "default": { "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": { "CLIENT_CLASS": "django_redis.client.DefaultClient", }