the redis host needs to be configured for channel layers

otherwise the post migration signal in django will try to establish an connection to localhost, no matter what redis server ip or adress was entered
This commit is contained in:
Jochen Saalfeld 2018-11-21 15:41:27 +01:00
parent 0a361665c4
commit 09e2629b64
No known key found for this signature in database
GPG Key ID: 8ACD4E8264B67DF4
1 changed files with 9 additions and 4 deletions

View File

@ -82,10 +82,15 @@ if use_redis:
# Django Channels
# https://channels.readthedocs.io/en/latest/topics/channel_layers.html#configuration
CHANNEL_LAYERS['default']['BACKEND'] = 'channels_redis.core.RedisChannelLayer'
CHANNEL_LAYERS['default']['CONFIG'] = {"capacity": 100000}
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("localhost", 6379)],
"capacity": 100000,
},
},
}
# Collection Cache
# Can be: