fixed websockets in asgi server with static files
This commit is contained in:
parent
ee5f549297
commit
e2fcf0ffeb
1 changed files with 7 additions and 0 deletions
|
@ -41,4 +41,11 @@ with suppress(ImportError):
|
||||||
),
|
),
|
||||||
Mount(path='/', app=django_asgi),
|
Mount(path='/', app=django_asgi),
|
||||||
]),
|
]),
|
||||||
|
"websocket": AllowedHostsOriginValidator(
|
||||||
|
AuthMiddlewareStack(
|
||||||
|
UserPermissionsChannelMiddleware(
|
||||||
|
URLRouter(websocket_urlpatterns),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue