摘要: drf认证 参考网址 https://www.cnblogs.com/yangyi215/p/15041975.html 作用: 校验用户是否登录 书写步骤 - 写一个类,继承BaseAuthentication,重写类中的重写authenticate方法,认证的逻辑写在其中 - 如果认证通过,返回 阅读全文