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 1cf8cfc commit 1790ea2Copy full SHA for 1790ea2
djangosnippets/settings/production.py
@@ -79,6 +79,11 @@ def env_to_bool(input):
79
"OPTIONS": {
80
"PASSWORD": redis_url.password,
81
"DB": 0,
82
+ "CONNECTION_POOL_CLASS": "redis.BlockingConnectionPool",
83
+ "CONNECTION_POOL_CLASS_KWARGS": {
84
+ "max_connections": 20,
85
+ "timeout": 20,
86
+ },
87
},
88
}
89
docker-compose.yml
@@ -12,7 +12,7 @@ services:
12
web:
13
build: .
14
environment:
15
- - REDISTOGO_URL=${REDISTOGO_URL}
+ - REDISCLOUD_URL=${REDISCLOUD_URL}
16
- SECRET_KEY=${SECRET_KEY}
17
- DEBUG=${DEBUG}
18
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
0 commit comments