Drf 认证源码分析
APIView下有一个dispatch方法

进入initial函数,里面有perform和check等方法,

查看 perform_authentication,传入了新生成的封装好的request对象

查看drf 下Request对象

class Request:



循环的就是我们在视图类中写的列表

APIView下有一个dispatch方法

进入initial函数,里面有perform和check等方法,

查看 perform_authentication,传入了新生成的封装好的request对象

查看drf 下Request对象

class Request:



循环的就是我们在视图类中写的列表
