16 lines
357 B
Python
16 lines
357 B
Python
'''
|
|
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
import users.routing
|
|
|
|
|
|
application = ProtocolTypeRouter({
|
|
# Empty for now (http->django views is added by default)
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(
|
|
users.routing.websocket_urlpatterns
|
|
)
|
|
),
|
|
})
|
|
|
|
''' |