后端源代码
2019-07-10 本文已影响0人
Dontoverdo_9a9e
1.选中APIView
image.png
2.找dispatch中的initial
image.png
3.找到initial 下的perform_authentication
image.png
4.找到perform_authentication的user(第三个)
image.png
5.点击_authenticate实现认证
image.png
6.设置了_authenticate如果有值用上面
如果没有值用下面_not_authenticated
image.png
image.png
7.再回到settings加上匿名用户的配置
image.png