from muxi.form import Form
from muxi.form.fields import StringField, SubmitField
from muxi.form.validators import Required
class MuxiForm(Form):
name = StringField(validators=[Required()])
submit = SubmitField("submit")
And when I create form in view function:
It called RuntimeError!!!!
now, I just use form ... import * to import flask-wtf API....(may be tooo simple...)
If I coding this:
And when I create form in view function: It called RuntimeError!!!!
now, I just use
form ... import *
to import flask-wtf API....(may be tooo simple...)