django httpresponse 显示标准json

b = json.dumps(result,ensure_ascii=False,indent=3,cls=DatetimeJSONEncoder)
return HttpResponse(b, content_type="application/json")


分享到: 微信 更多