Flask|Flask web开发报错validate_on_submit

页面报错是:builtins.TypeError
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given
author=StringField('作者',validators=[DataRequired()])中的DataRequired()加上括号即可
顺便做下其他笔记from flask_wtf import FlaskFormflask.ext.wtf已经不适用了


【Flask|Flask web开发报错validate_on_submit】转自:https://blog.csdn.net/a475952074/article/details/79922360

    推荐阅读