Skip to content

Instantly share code, notes, and snippets.

@marknagelberg
Created August 20, 2018 04:30
Show Gist options
  • Save marknagelberg/eba3eb55421536c34a2649bfac05a213 to your computer and use it in GitHub Desktop.
Save marknagelberg/eba3eb55421536c34a2649bfac05a213 to your computer and use it in GitHub Desktop.
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class NameForm(FlaskForm):
name = StringField('Enter a name', validators=[DataRequired()])
submit = SubmitField('Submit')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment