【发布时间】:2021-03-10 12:53:26
【问题描述】:
【问题讨论】:
标签: django django-rest-framework postman django-rest-auth
【问题讨论】:
标签: django django-rest-framework postman django-rest-auth
对于 Postman,您使用了 POST 方法
对于 DRF,您使用了 GET 方法
您的端点只允许用于 POST 和 OPTIONS,所以难怪您收到消息 method GET is not allowed
顺便说一句,请注意,您在两种情况下都使用不同的Content-Type
在浏览器中打开developer's console,您将看到您使用的具体方法。
【讨论】: