I\'ve referred to sqlalchemy.orm.exc.UnmappedInstanceError in flask and the SQLAlchemy docs. From what I understand you need a "tablename =" and