Accept the json request.

瀏覽次數:14 次
跳到第一則未讀訊息

11751...@qq.com

未讀,
2016年4月27日 清晨6:22:422016/4/27
收件者:Django users
I was wondering if there is any method to the handle the json request in an easy and simple way.
For examle ( in flask ):
names = request.json['names']
But in django, I will use: 
import json
text
= request.read()
names
=json.loads(text)['names']
Is there any way better?
回覆所有人
回覆作者
轉寄
0 則新訊息