调试 uvicorn

main
RogerWork 9 months ago
parent af49c07060
commit 5185ba9680
  1. 2
      dingxin_toolbox_drf/asgi.py

@ -9,6 +9,7 @@ https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
import os import os
import django import django
from django.conf import settings
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
from channels.routing import ProtocolTypeRouter, URLRouter from channels.routing import ProtocolTypeRouter, URLRouter
from channels.routing import get_default_application from channels.routing import get_default_application
@ -25,4 +26,5 @@ application = ProtocolTypeRouter(
'websocket': URLRouter(websocket_urlpatterns) 'websocket': URLRouter(websocket_urlpatterns)
} }
) )
settings.configure(DEBUG=True)
django.setup() django.setup()

Loading…
Cancel
Save