摘要: 基本结构 urls.py views.py 注意事项: 1.使用认证类 在需要认证的视图类中,写入authentication_classes = [TestAuthentication, ],变量属性authentication_classes是个列表,列表中可写多个认证类,通过认证方才执行视图类 阅读全文
posted @ 2019-03-19 17:15 苦行僧PH 阅读(306) 评论(0) 推荐(0) 编辑