Spaces:
Running
Running
File size: 724 Bytes
aff4b27 d5374bf aff4b27 d5374bf aff4b27 d5374bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
"""
ASGI config for hsapssconnect project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
"""
import os
from channels.auth import AuthMiddlewareStack
from django.core.asgi import get_asgi_application
from channels.routing import ProtocolTypeRouter, URLRouter
import notification.routing
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hsapssconnect.settings")
application = ProtocolTypeRouter({
'http': get_asgi_application(),
'websocket': AuthMiddlewareStack(
URLRouter(
notification.routing.websocket_urlpatterns
)
),
}) |