Still-not-satisfied-projects / muxi

[dev]木犀:seedling: a python web framework, simple & powerful
6 stars 1 forks source link

RuntimeError when create Form #3

Open misakar opened 8 years ago

misakar commented 8 years ago

If I coding this:

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...)

misakar commented 8 years ago

now I will test if I just use flask-wtf !

misakar commented 8 years ago

well, not work !!!!!!!!

misakar commented 8 years ago

now I will move MuxiForm class in views..

misakar commented 8 years ago

still RuntimeError!!!!!

misakar commented 8 years ago

Now, I just can not create Form:form = MuxiForm() , just like a 💣!!!!