做公众号测试的时候,发现了个问题:

提交表单报错:RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set.

 

解决方案:

 

提示form的action地址最后不是/结尾的,而且APPEND_SLASH的值是Ture

将from的action地址改为 / 结尾的就可以了 (http:://127.0.0.1:12345/weixin/)
或者 
修改settings:APPEND_SLASH=False

 

相关文章:

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