from flask_wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Required


class SimpleForm(Form):
    name = StringField('Your name', validators=[Required()])
    submit = SubmitField('Submit')

from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import Required


class SimpleForm(FlaskForm):
    name = StringField('Your name', validators=[Required()])
    submit = SubmitField('Submit')

Change Form to FlaskForm (prevent deprecated)
Change Form to FlaskForm (prevent deprecated)
