newmediamonitoring1/NewMediaMonitoring/routing.py

12 lines
333 B
Python

from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import polls.routing
application = ProtocolTypeRouter({
# (http->django views is added by default)
'websocket': AuthMiddlewareStack(
URLRouter(
polls.routing.websocket_urlpatterns
)
),
})