有没有办法使用带有Authtoken的Django Rest Framework的可浏览API

dow*_*123 11 django-authentication django-rest-framework

如何通过authtoken(而不是username/pwd)进行身份验证,为特定用户使用Django Rest Framework可浏览API?就像我在Chrome中为POSTMAN做的那样

谢谢

arg*_*aen 15

检查modheader.它允许您为请求设置标头.您可以在其中设置令牌authtoken,其中"Name"为"Authorization","Value"为"Token <your_token>"