摘要: 昨日内容 # 1 认证类的执行流程 >源码分析 -请求进来 >路由匹配成功 >执行path('text/',view.BookView.as_view()), >继承了APIView >APIView的as_view()内部的闭包函数view >这个view中执行了self.dispatch >AP 阅读全文
posted @ 2023-02-09 22:15 Super小赵 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 昨日回顾 # 1 认证的使用 -有些接口需要登陆后才能访问 -原生django如何使用的认证:auth的user表,auth自带了认证 -自己登录,使用自定义的用户表 -认证类的使用步骤: -1 写一个认证类,继承BaseAuthentication -2 重写 authenticate,在方法中完 阅读全文
posted @ 2023-02-09 18:53 Super小赵 阅读(39) 评论(0) 推荐(0) 编辑
****************************************** 页脚Html代码 ******************************************