flask_wtf在import的时候如果写成:
from flask_wtf import Form
flask在运行的时候会有警告信息:
FlaskWTFDeprecationWarning: "flask_wtf.Form" has been renamed to "FlaskForm" and will be removed in 1.0...
修改为:
from flask_wtf import FlaskForm
即可正常,相应的class也要从Form改成FlaskForm如:
class LoginForm(FlaskForm):
即可去除FlaskWTFDeprecationWarning: “flask_wtf.Form” has been renamed to “FlaskForm” and will be removed in 1.0警告信息。