django表单提交错误

来源:互联网 发布:eplan软件使用心得 编辑:程序博客网 时间:2024/06/01 11:24

    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:8000/change_password/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

    您通过POST调用此URL,但该URL不以斜杠结尾,并且已设置了APPEND_SLASH。 维护POST数据时,Django无法重定向到斜杠URL。 更改您的表单指向127.0.0.1:8000/change_password/(注意尾部斜线),或在您的Django设置中设置APPEND_SLASH = False。



错误原因:html模板中的form表单中的action标签后的地址结尾没有反斜杠/

原创粉丝点击