Home:ALL Converter>Django channels and azure

Django channels and azure

Ask Time:2020-07-12T21:02:31         Author:saibhaskar

Json Formatter

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

Author:saibhaskar,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/62861435/django-channels-and-azure
yy