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

边栏推荐
猜你喜欢
随机推荐
网络安全行业是蓝景吗?
你要悄悄学网络安全,然后惊艳所有人
一场聚会,转行渗透测试月薪13.5k,感谢那个女同学......
把DocumentsandSettings迁移到别的盘
如何在Excel 里倒序排列表格数据 || csv表格倒序排列数据
JUC并发容器——跳表
Socket编程详解
基于Event Stream操作JSON
基于语音识别的QT设计的csgo互动类视频游戏
Usage of SFTP
Pipe redirection
Treating as key frame since WebRTC-SpsPpsIdrIsH264Keyframe is disabled 解决
并发概念基础:线程安全与线程间通信
Jackson 使用样例
如何在网页标题栏中加入图片!
Miscellaneous [development] [VS Code] remote - SSD retry failed
新冠病毒和网络安全的异同及思考
[English learning][sentence] good sentence
实现高并发服务器(二)
树莓派 4 B 拨动开关控制风扇 Rasberry Pi 4 B Add Toggle Switch for the Fan









