from flask_wtf.csrf import CSRFProtect
CSRFProtect(app)
app.secret_key = '12346'
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">