CSRF verification failed. Request aborted

后端 未结 10 1931
执笔经年
执笔经年 2020-12-01 13:04

I try to build a very simple website where one can add data into sqlite3 database. I have a POST form with two text input.

index.html:

{% if top_list         


        
10条回答
  •  离开以前
    2020-12-01 13:34

    1) {% csrf_token %} is not in template -- or -- 2) {% csrf_token %} is outside of html-form

提交回复
热议问题