ws
This commit is contained in:
@@ -54,6 +54,13 @@ MIDDLEWARE = [
|
||||
# 指定websocket主路由的位置
|
||||
ASGI_APPLICATION = 'jsmindmulti.asgi.application'
|
||||
|
||||
# 指定websocket CHANNEL_LAYERS
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels.layers.InMemoryChannelLayer"
|
||||
}
|
||||
}
|
||||
|
||||
ROOT_URLCONF = 'jsmindmulti.urls'
|
||||
|
||||
TEMPLATES = [
|
||||
|
||||
Reference in New Issue
Block a user