在填写form表单中的action属性的url时,如果是post请求,那么必须要在尾部加上"/",且必须以"/"开头,如果尾部不加"/",则会出现如下异常:
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 localhost:8888/system/user/res/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.