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)

- from flask_wtf import Form
+ from flask_wtf import FlaskForm
  from wtforms import StringField, SubmitField
  from wtforms.validators import Required
  
  
- class SimpleForm(Form):
+ class SimpleForm(FlaskForm):
      name = StringField('Your name', validators=[Required()])
      submit = SubmitField('Submit')
  
Change Form to FlaskForm (prevent deprecated)
## Code Before:
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')

## Instruction:
Change Form to FlaskForm (prevent deprecated)
## Code After:
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')
