13 lines
343 B
Python
13 lines
343 B
Python
import chat_box.routing
|
|
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
|
|
application = ProtocolTypeRouter({
|
|
# (http->django views is added by default)
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(
|
|
chat_box.routing.websocket_urlpatterns,
|
|
),
|
|
),
|
|
})
|