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

return JsonResponse(result)

改为:

return JsonResponse(result, safe=False)

posted @ 2020-06-05 10:15  流年中渲染了微笑  阅读(326)  评论(0编辑  收藏  举报