Add json import (fixes #700)

This commit is contained in:
Andrew Godwin 2017-07-05 07:31:30 -07:00
parent b81bbc662c
commit acb3988999

View File

@ -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