def ajax_dict(request):
name_dict = {'twz':'Love python and Django','zqxt':'I am teaching Django'}
return HttpResponse(json.dumps(name_dict), content_type='application/json')
def ajax_dict(request):
name_dict = {'twz':'Love python and Django','zqxt':'I am teaching Django'}
return JsonResponse(name_dict)
网友评论