You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
378 B

from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import DataRequired
class postForm(FlaskForm):
title = StringField('Title',
validators=[DataRequired()])
content = TextAreaField('Content',
validators=[DataRequired()])
submit = SubmitField('Post')