##// END OF EJS Templates
Add https
Add https

File last commit:

r46:74b7da9f69c6
r46:74b7da9f69c6
Show More
asgi.py
20 lines | 493 B | text/x-python | PythonLexer
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "realtime.settings")
django_asgi_app = get_asgi_application()
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import plotter.routing
application = ProtocolTypeRouter({
'http': django_asgi_app,
'websocket': AuthMiddlewareStack(
URLRouter(
plotter.routing.websocket_urlpatterns
)
),
})