Flask-WTF

可以使用Flask-WTF
pip install flask-wtf

配置密钥

  1. app = Flask(__name__)
  2. app.config['SECRET_KEY']='hard to guess string'