Django post 提交报错

820阅读 0评论2012-12-13 sunisD0wn
分类:系统运维

RuntimeError at /network/ips 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 10.2.8.111:9999/network/ips/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

这种情况是因为post请求的url 最后‘/’的问题,调整即可
上一篇:Nginx+uwsgi+django 部署
下一篇:Django form表单中forms.TypedChoiceField choices动态赋值