mirror of
https://github.com/django/daphne.git
synced 2025-08-04 18:40:09 +03:00
Add json import (fixes #700)
This commit is contained in:
parent
b81bbc662c
commit
acb3988999
|
@ -385,6 +385,7 @@ Let's use it now to build a chat server that expects you to pass a chatroom
|
||||||
name in the path of your WebSocket request and a query string with your username (we'll ignore auth for now - that's next)::
|
name in the path of your WebSocket request and a query string with your username (we'll ignore auth for now - that's next)::
|
||||||
|
|
||||||
# In consumers.py
|
# In consumers.py
|
||||||
|
import json
|
||||||
from channels import Group
|
from channels import Group
|
||||||
from channels.sessions import channel_session
|
from channels.sessions import channel_session
|
||||||
from urllib.parse import parse_qs
|
from urllib.parse import parse_qs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user