django:doesn’t end in a slash and you have APPEND_SLASH set.

django收到POST请求出现 :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

解决方法:

修改settings.py文件,增加APPEND_SLASH=False

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据