Django开发中form表单post提交出现403问题解决
<form action=
"{% url 'blog:edit_action' %}" method=
"post">
{% csrf_token %}
<label>文章标题
<input type=
"text" name =
"name">
</label>
<br/>
<label>文章内容
<input type=
"text" name =
"age">
</label>
<br/>
<input type=
"submit" value=
"提交 ">
</form>
在form表单中添加{% csrf_token %}即可
-