django httpresponse 显示标准json
b = json.dumps(result,ensure_ascii=False,indent=3,cls=DatetimeJSONEncoder)
return HttpResponse(b, content_type="application/json")
b = json.dumps(result,ensure_ascii=False,indent=3,cls=DatetimeJSONEncoder)
return HttpResponse(b, content_type="application/json")