mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-09 05:59:53 +00:00
17 lines
443 B
Python
17 lines
443 B
Python
import os
|
|
|
|
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
from django.core.asgi import get_asgi_application
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'terminus.settings')
|
|
|
|
from .app.urls import websocket_urlpatterns
|
|
|
|
application = ProtocolTypeRouter({
|
|
'http': get_asgi_application(),
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(websocket_urlpatterns),
|
|
),
|
|
})
|