当前位置:网站首页>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/$’
边栏推荐
猜你喜欢
随机推荐
库函数的模拟实现-C语言
Operating System Random
[Development Miscellaneous][Editor][Code Reading]ctags & vim
IDEA中创建web项目实现步骤
C语言静态变量static的分析
Uos统信系统 DNS
2022在 Go (Golang) 中使用微服务的系统课程
复杂格式的json转递
位段-C语言
无一技之长学什么可以做到月入上万?
Prematurely reached end of stream
数据库JDBC DAO层方法
Uos统信系统 Postfix-smtps & Dovecot-imaps
使用JS在浏览器中打印菱形
sql常用函数
沉浸式体验参加网络安全培训班,学习过程详细到底!
EL expression
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
枚举和联合(自定义类型)-C语言
JUC并发容器——跳表