2018年10月18日

django rest framework 的api返回html

摘要: return Response(data=serializer.data, status=status.HTTP_200_OK, content_type="application/json")content_type="application/json"去掉,写成:return Response( 阅读全文

posted @ 2018-10-18 23:25 工大只有一个阿锤 阅读(951) 评论(0) 推荐(0) 编辑

导航