django项目在发送请求时,后端报错
RuntimeError: 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/users/get_body/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
解决方法
提示的时url地址不是以/结尾的,把请求的url最后加上/就可以了
也可以去setting配置文件中添加一项配置:APPEND_SLASH=False