当前位置:网站首页>RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S
RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S
2022-08-04 05:34:00 【上海_运维_Q先生】
1. 报错现象
访问时报错:
RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set. Django can’t redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8080/api/login/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
apipost报错

IDEA报错

2. 解决方法
给urlhttp://127.0.0.1:8080/api/login最后加上/即可.
原因是urls里的配置是’^api/login/$’

边栏推荐
猜你喜欢
随机推荐
网络安全求职指南
用chrome dev tools 强制js注入
JDBC第一学之进行数据库连接时出现The server time zone.....解决办法
Uos统信系统 本地APT源配置
C语言结构体(必须掌握版)
Vmmem process (WSL2) consumes huge amount of memory
ZYNQ之FPGA LED 灯闪烁实验
PS像素画学习-1
你要悄悄学网络安全,然后惊艳所有人
把DocumentsandSettings迁移到别的盘
Jackson 使用样例
win10下mediasoup搭建过程中的一些坑记录
JUC锁框架——初识AQS
学好网络安全看这篇文章让你少走弯路
常见的一些排序
普通用户 远程桌面连接 服务器 Remote Desktop Service
vs2017 redist 下载地址
[Development miscellaneous][Debug]debug into kernel
并发概念基础:并发、同步、阻塞
使用cef离屏渲染技术实现在线教育课件和webrtc视频回放融合录制









