From 5185ba96809a55f0e94178207830f7fc38e03064 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Mon, 19 Feb 2024 11:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=20uvicorn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dingxin_toolbox_drf/asgi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dingxin_toolbox_drf/asgi.py b/dingxin_toolbox_drf/asgi.py index e28b865..d1313c7 100644 --- a/dingxin_toolbox_drf/asgi.py +++ b/dingxin_toolbox_drf/asgi.py @@ -9,6 +9,7 @@ https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ import os import django +from django.conf import settings from django.core.asgi import get_asgi_application from channels.routing import ProtocolTypeRouter, URLRouter from channels.routing import get_default_application @@ -25,4 +26,5 @@ application = ProtocolTypeRouter( 'websocket': URLRouter(websocket_urlpatterns) } ) +settings.configure(DEBUG=True) django.setup()