diff --git a/evenementiel/routing.py b/evenementiel/routing.py index 8f9af19..7c7945e 100644 --- a/evenementiel/routing.py +++ b/evenementiel/routing.py @@ -1,2 +1,5 @@ +from channels.routing import ProtocolTypeRouter + + # Nothing yet -channel_routing = [] +application = ProtocolTypeRouter({}) diff --git a/evenementiel/settings/common.py b/evenementiel/settings/common.py index 966a57f..e57d499 100644 --- a/evenementiel/settings/common.py +++ b/evenementiel/settings/common.py @@ -84,6 +84,7 @@ REST_FRAMEWORK = { } ROOT_URLCONF = 'evenementiel.urls' +ASGI_APPLICATION = "evenementiel.routing.application" STATIC_URL = "/static/" MEDIA_URL = "/media/" @@ -123,7 +124,7 @@ DATABASES = { CHANNEL_LAYERS = { "default": { - "BACKEND": "asgi_redis.RedisChannelLayer", + "BACKEND": "channels_redis.RedisChannelLayer", "CONFIG": { "hosts": [( "redis://:{passwd}@{host}:{port}/{db}"