django:将query-set类型转为json类型 import json data = json.dumps(list(my_table.objects.all().values())) return HttpResponse(data)