摘要: 请求 rest_framework下的Request类源码分析: from rest_framework.request import Request class Request: def __init__(self, request, parsers=None, authenticators=No 阅读全文
posted @ 2020-11-06 20:37 NQ31 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 认证组件 使用方法: 1、新建一个认证类文件,继承BaseAuthentication from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import Authent 阅读全文
posted @ 2020-11-06 20:35 NQ31 阅读(202) 评论(0) 推荐(0) 编辑