thejagstudio's picture
Add notification app with initial models, views, and admin configuration; remove unused image files
d5374bf
raw
history blame
724 Bytes
"""
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
)
),
})