摘要: 简介: 两个视图基类:PIView,GenericAPIView,五个扩展类:ListModelMixin,CreateModelMixin ,RetieveModelMixin,UpdateModelMixin,DestoryModelMixin,九个视图子类与视图集 drf视图组件 视图就是视图 阅读全文
posted @ 2023-02-03 20:32 李阿鸡 阅读(30) 评论(0) 推荐(0) 编辑
摘要: drf之请求 Request能够解析前端传入的编码格式 查看源码 APIView 中有属性 parser_classes 就是解析类,我们知道前端传入过来有三种编码方式。 1.form-data 2.urlencoded 3.json -parser_classes = api_settings.D 阅读全文
posted @ 2023-02-03 19:49 李阿鸡 阅读(81) 评论(0) 推荐(0) 编辑
Title