We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e9a758 commit fb4880fCopy full SHA for fb4880f
apps/maxkb/conf.py
@@ -69,10 +69,9 @@ def get_cache_setting(self):
69
return {
70
'default': {
71
'BACKEND': 'django_redis.cache.RedisCache',
72
- 'LOCATION': f'redis://{self.get("REDIS_HOST")}:{self.get("REDIS_PORT")}',
+ 'LOCATION': f'redis://{self.get("REDIS_HOST")}:{self.get("REDIS_PORT")}/{self.get("REDIS_DB")}',
73
'OPTIONS': {
74
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
75
- "DB": self.get("REDIS_DB"),
76
"PASSWORD": self.get("REDIS_PASSWORD"),
77
"CONNECTION_POOL_KWARGS": {"max_connections": int(self.get("REDIS_MAX_CONNECTIONS"))}
78
},
0 commit comments