Django-常用异常

1 from rest_framework.authentication import BasicAuthentication

  raise AuthenticationFailed(res.dict)

 DRF认证组件,认证失败捕获的异常

猜你喜欢

转载自www.cnblogs.com/benson321/p/9720010.html
今日推荐