librelist archives

« back to archive

wtforms.ext.sqlalchemy.fields.QuerySelectField

wtforms.ext.sqlalchemy.fields.QuerySelectField

From:
Corey Boyle
Date:
2015-04-21 @ 23:00
I am having some trouble with wtforms, I'm trying to use
wtforms.ext.sqlalchemy.fields.QuerySelectField in one of my forms but I'm
getting "RuntimeError: application not registered on db instance and no
application bound to current context". I think I understand the cause of
the error, I'm just not sure how to fix it. I'm using an application
factory pattern modeled after the example app in Miguel Grinberg's Flask
book.