Django开发中form表单post提交出现403问题解决

来源:互联网 发布:linux scp 断点续传 编辑:程序博客网 时间:2024/06/16 00:24

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 %}即可

-