
rest-framework源码解析--SessionAuthentication
ok,又到了看源码的时间了,今天我们看的源码是 SessionAuthentication 类这一源码函数较少,比较简单,首先看到 authenticate 函数: def authenticate(self, request): """ Returns a `User` if the request session currently has a logged in user. Otherwise returns `None`.




















