Merge pull request #4028 from jsaalfeld/fix_redis

the redis host needs to be configured for channel layers
This commit is contained in:
Emanuel Schütze 2018-12-03 14:15:59 +01:00 committed by GitHub
commit d11154cfc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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