首页 > 解决方案 > 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/

标签: pythondjangodjango-rest-frameworkpycharm

解决方案


推荐阅读