As explicitly stated in the excellent guide , to successfully launch the channels you need to have a dedicated application server that implements the ASGI protocol, such as the supplied onedaphne
Django , " ", , , WebSockets HTTP SMS, " ", (, ...). "", .
3 , ASGI :
, DATABASES::
CHANNEL_LAYERS = {
"default": {
"BACKEND": "asgi_redis.RedisChannelLayer",
"ROUTING": "my_project.routing.channel_routing",
"CONFIG": {
"hosts": [("redis-channel-1", 6379), ("redis-channel-2", 6379)],
},
},
}
, , docker nginx
( - ) , , redis connectin all them.
, , , , nginx ASGI, django- http- .
.