django - 当我通过基本身份验证在邮递员中使用 PUT 方法时出现错误,我正在研究 django rest-framework
问题描述
{
"detail":"Unsupported media type \"text/plain\" in request."
}
解决方案
它的发生是因为您请求的内容类型。
- 首先检查您的意见内容类型。2.根据postman中的视图更改内容类型。
例如 :
Header -> 添加键:“Content-Type” 值:“application/json”</p>
推荐阅读
- php - 如何制作包含活动的每周日历
- opencv - 什么以及如何在 OpenCV 下运行测试
- python - 使用 pandas 附加到 .csv 文件
- c# - 如何按角色的 SortOrder 对员工列表进行排序?
- azure - 尝试使用 azure vault 证书密钥解密时出错:“操作返回了无效的状态代码‘禁止’”
- r - 计算具有正数和负数的列中的四分位数(仅正数)的函数
- wordpress - Wordpress 仪表板问题
- ios - FIRMessaging 只能从主线程调用
- model - 提供/回答模型,拒绝
- c++ - 从 Vector 中删除 unique_ptr´s 并将它们用作新 Struct 的参数