1 from rest_framework.authentication import BasicAuthentication
raise AuthenticationFailed(res.dict)
DRF认证组件,认证失败捕获的异常
1 from rest_framework.authentication import BasicAuthentication
raise AuthenticationFailed(res.dict)
DRF认证组件,认证失败捕获的异常
转载于:https://www.cnblogs.com/benson321/p/9720010.html