mirror of
https://github.com/evraz-hack/backend.git
synced 2024-11-22 17:16:38 +03:00
15 lines
423 B
Python
15 lines
423 B
Python
|
import os
|
||
|
|
||
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
||
|
from django.core.asgi import get_asgi_application
|
||
|
|
||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
|
||
|
|
||
|
django_asgi_app = get_asgi_application()
|
||
|
|
||
|
from exhauster_analytics.analytics.routing import websocket_urlpatterns
|
||
|
|
||
|
application = ProtocolTypeRouter(
|
||
|
{"http": django_asgi_app, "websocket": URLRouter(websocket_urlpatterns)}
|
||
|
)
|