parent
90b86d341d
commit
4531100393
4 changed files with 26 additions and 19 deletions
@ -0,0 +1,13 @@ |
|||||||
|
from .wsgi import * |
||||||
|
# from channels.auth import AuthMiddlewareStack |
||||||
|
from channels.routing import ProtocolTypeRouter, URLRouter |
||||||
|
from django.core.asgi import get_asgi_application |
||||||
|
from .urls import websocket_urlpatterns |
||||||
|
|
||||||
|
|
||||||
|
application = ProtocolTypeRouter( |
||||||
|
{ |
||||||
|
'http': get_asgi_application(), |
||||||
|
'websocket': URLRouter(websocket_urlpatterns) |
||||||
|
} |
||||||
|
) |
Loading…
Reference in new issue