当前位置:网站首页>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注入
基于Webrtc和Janus的多人视频会议系统开发5 - 发布媒体流到Janus服务器
最全的最详细的指针讲解(C语言)
使用JS在浏览器中打印菱形
JVM intro
树莓派 4 B 拨动开关控制风扇 Rasberry Pi 4 B Add Toggle Switch for the Fan
【HIT-SC-LAB2】哈工大2022软件构造 实验2
vim的介绍
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
file editor
随机推荐
位段-C语言
webrtc技术名词和关键技术要点:SVC,REMB,SVC...
Janus转发丢包导致音视频不同步原因分析
EL expression
关于网络安全行业你知道多少?
结构体内存对齐-C语言
使用cef离屏渲染技术实现在线教育课件和webrtc视频回放融合录制
淘宝分布式文件系统存储引擎(一)
网络安全求职指南
安全漏洞是如何被发现的?
Socket编程详解
动态内存管理-C语言
冰歇webshell初探
【HIT-SC-LAB1】哈工大2022软件构造 实验1
【HIT-SC-MEMO4】哈工大2022软件构造 复习笔记4
Miscellaneous [development] [VS Code] remote - SSD retry failed
以太网 ARP
JVM三大常量池与方法区
C#找系统文件夹路径
最全的最详细的指针讲解(C语言)