From 1ae5c80f76c35758325a05a7de0843800ba4d2a4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 29 Jun 2022 11:09:34 +0200 Subject: [PATCH] Add default django asgi handler --- gestioasso/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestioasso/routing.py b/gestioasso/routing.py index f329fdcd..2b42648a 100644 --- a/gestioasso/routing.py +++ b/gestioasso/routing.py @@ -1,6 +1,6 @@ from channels.auth import AuthMiddlewareStack -from channels.http import AsgiHandler from channels.routing import ProtocolTypeRouter, URLRouter +from django.core.asgi import get_asgi_application from django.urls import path from kfet.routing import KFRouter @@ -15,6 +15,6 @@ application = ProtocolTypeRouter( ] ) ), - "http": AsgiHandler, + "http": get_asgi_application(), } )