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

xiaoxiao2021-02-28  7

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

-

转载请注明原文地址: https://www.6miu.com/read-1100130.html

最新回复(0)