django表单post无效,仍是get方法

2017-05-16  本文已影响0人  黑人不是牙膏

在提交post 表单前,csrf_token 必须有值。
{% csrf_token %}

否则,不能post提交。

上一篇 下一篇

猜你喜欢

热点阅读