1.选中APIView

2.找dispatch中的initial

3.找到initial 下的perform_authentication

4.找到perform_authentication的user(第三个)

5.点击_authenticate实现认证

6.设置了_authenticate如果有值用上面
如果没有值用下面_not_authenticated


7.再回到settings加上匿名用户的配置

1.选中APIView
2.找dispatch中的initial
3.找到initial 下的perform_authentication
4.找到perform_authentication的user(第三个)
6.设置了_authenticate如果有值用上面
如果没有值用下面_not_authenticated
7.再回到settings加上匿名用户的配置
本文标题:后端源代码
本文链接:https://www.haomeiwen.com/subject/odxlkctx.html
网友评论