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