flask_wtf/wtforms几个坑点,先简单记此
1、@pluginquery.route('/app_include_plugins', methods=['GET','POST'])
methods必须填写
2、plu_incl_app = StringField('plu_incl_app', [DataRequired(message="插件名字不能为空,必须输入1到20位"), Length(min=1, max=20)])
图示黄色区域名字必须一致
1、@pluginquery.route('/app_include_plugins', methods=['GET','POST'])
methods必须填写
2、plu_incl_app = StringField('plu_incl_app', [DataRequired(message="插件名字不能为空,必须输入1到20位"), Length(min=1, max=20)])
图示黄色区域名字必须一致