I am trying to deploy django channels in azure.
I have already integrated it with azure redis cache and it's working good in local host.
I have tried the normal deployment of django apps in azure, everything except sockets are working.
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [(f'redis://:{os.environ["REDISPASS"]}@mywebsite.redis.cache.windows.net:6379/0')],
},
},
}
It's showing unexpected error website closed unexpectedly.
I have followed this basic stater code for implementing django channels.
Tutorial
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…