from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import DataRequired class EntryForm(FlaskForm): name = StringField('Name', validators=[DataRequired()]) title = StringField('Title', validators=[DataRequired()]) content = TextAreaField('Content', validators=[DataRequired()]) age = TextAreaField('Age', validators=[DataRequired()]) submit = SubmitField('Submit')