newmediamonitoring/NewMediaMonitoring/routing.py

12 lines
333 B
Python
Raw Normal View History

2020-09-18 16:11:19 +00:00
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import polls.routing
2020-09-03 02:56:28 +00:00
application = ProtocolTypeRouter({
# (http->django views is added by default)
2020-09-18 16:11:19 +00:00
'websocket': AuthMiddlewareStack(
URLRouter(
polls.routing.websocket_urlpatterns
)
),
2020-09-03 02:56:28 +00:00
})