Django 表單 POST CSRF verification failed. Request aborted.錯誤

這裏有答案html http://www.qttc.net/201209211.htmldjango   總結就是app 1.在模板中要提交的form中加入{% csrf_token %}post <form method="post">   {% csrf_token %} {{form.as_p}} <input type="submit" name="ok"> </form>
相關文章
相關標籤/搜索