Django 提示: In order to allow non-dict objects to be serialized

转载地址:https://blog.csdn.net/weixin_44623010/article/details/105949028

return JsonResponse(result)
改为:
return JsonResponse(result, safe=False)

你可能感兴趣的:(django,python,后端)