samedi 7 novembre 2015

How to use ItemModel.query.all() from this Flask tutorial?

I've got this this tutorial and I have troubles with assigning data from database to items variable with this command items = ItemModel.query.all()

It works with dicts, but not here. Should I import that ItemModel or what? Thanks.

Aucun commentaire:

Enregistrer un commentaire