当前位置:网站首页>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/$’

边栏推荐
猜你喜欢
随机推荐
JVM intro
win10下mediasoup搭建过程中的一些坑记录
file editor
更改软件的默认安装位置
杰哥带大家做一次meterpreter内网渗透模拟
【HIT-SC-LAB2】哈工大2022软件构造 实验2
结构体传参-C语言
C语言数组的深度分析
关于gopher协议的ssrf攻击
读取JDBC配置文件
Janus转发丢包导致音视频不同步原因分析
Pfsense漏洞复现(CVE-2021-41282)
Vmmem process (WSL2) consumes huge amount of memory
最全的最详细的指针讲解(C语言)
[Development miscellaneous][Debug]debug into kernel
Unity Day02
【C语言】数组名是什么
华硕飞行堡垒系列无线网经常显示“无法连接网络” || 一打开游戏就断网
Arduino之ESP8266编程学习总结体会
Uos统信系统 chrony配置









