python - Warning message of "Unauthorized" in [django.request:230]
问题描述
日志文件包含有关“未经授权”访问某些 API URL 的警告。警告指示器显示“[django.request:230]”,我想这意味着触发器是与django.request
. 但是,我对 Django 和 PyCharm IDE 不熟悉,所以我无法准确找到哪个文件。
我希望找出此警告消息的根本原因并解决它。任何提示将不胜感激。
记录事件:
[03/Feb/2021 09:54:07] WARNING [django.request:230] Unauthorized: /api/rest-auth/user/
[03/Feb/2021 09:54:07] WARNING [django.request:230] Unauthorized: /api/products/meta/debt/
[03/Feb/2021 09:54:07] WARNING [django.request:230] Unauthorized: /api/products/meta/reg/
解决方案
推荐阅读
- postgresql - 在每个 SELECT 查询后触发 SEQUENCE
- javascript - 导航到其他页面时蓝牙设备断开连接
- node.js - 如何在 Dockerfile 中针对不同的构建环境运行不同的 ENTRYPOINT 命令?
- javascript - 事件冒泡:仅使用 stopPropagation 吗?
- sql - 将 oracle 数据类型转换为 teradata 数据类型
- react-native - ReactNative 中带有 JSON 对象的 AsyncStorage
- bash - 通过 sed 将键值对插入到具有正确缩进的 yaml 文件中
- c# - 从控制器设置 Viewbag
- javascript - 如何在 reactJs 中使用 onChange 过滤我的状态?
- python - 当 dtype 为 float16 时,为什么 Pandas 不舍入?