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", }