RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APP
END_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your
form to point to 127.0.0.1:9000/set_teacher.html/?cid=3/ (note the trailing slash), or set APPE
ND_SLASH=False in your Django settings.
 

发生这个错误的几种原因:

1. 发送的url结尾看是否有 /

2 .如果带有参数的话?前面一定也要有/,下面是错误的写法:

Django:You called this URL via POST, but the URL doesn't end in a slash and you have APP END_SLASH s

正确的写法:

Django:You called this URL via POST, but the URL doesn't end in a slash and you have APP END_SLASH s

相关文章:

  • 2022-12-23
  • 2021-04-04
  • 2021-11-28
  • 2022-12-23
  • 2021-06-02
  • 2021-10-31
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
相关资源
相似解决方案