2018年11月16日

APIView和View的区别

摘要: APIView和View的区别 API继承了View 重写了as_view方法 --豁免csrf def dispatch(self, request, *args, **kwargs): self.args = args self.kwargs = kwargs # 重新封装request # 新 阅读全文

posted @ 2018-11-16 14:49 窮山霧繞(静妙) 阅读(757) 评论(0) 推荐(0) 编辑

导航