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

边栏推荐
猜你喜欢
随机推荐
Janus转发丢包导致音视频不同步原因分析
并发概念基础:线程安全与线程间通信
网络安全行业是蓝景吗?
复杂格式的json转递
结构体内存对齐-C语言
MySQL索引
Uos统信系统 chrony配置
JVM intro
file permission management ugo
C#找系统文件夹路径
ssm pom文件依赖 web.xml配置
JVM三大常量池与方法区
淘宝分布式文件系统存储引擎(一)
读取JDBC配置文件
gRPC intro 1:RPC
生成一个包含日期的随机编码
An abstract class, internal classes and interfaces
Uos统信系统控制台欢迎登陆后消息及所处区域配置
华硕飞行堡垒系列无线网经常显示“无法连接网络” || 一打开游戏就断网
sql常用函数



![虚幻引擎 5 完整指南[2022六月最新课程学习内容]](/img/b3/fe90bca8166108e2e577d5a5e2ea6a.png)





