天天向上,

导航

drf十大组件

认证 作用,检测用户是否登录 在视图类中配置 authentication_classes = [] 这是一个列表 需要实现 authenticate() 方法 自定义认证类 #自定义认证类(继承自object) class MyBaseAuthentication(Object): def aut

posted on 2020-12-28 16:06  天天向上,  阅读(58)  评论(0编辑  收藏  举报