[Answered ]-How to run 2 sites with Django channels on the same host?

2👍

You need unique prefix parameter:

CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "asgi_redis.RedisChannelLayer",
        "CONFIG": {
            "hosts": [("localhost", 6379)],
            "prefix": "gradcam",
        },
        "ROUTING": "gradcam.routing.channel_routing",
    },
}
👤Sergey

Leave a comment