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()