db_session.commit() sci_fi = Category.query.filter_by(name='Sci-Fi').one() pitch = Item('Pitch Perfect 2', ''' After a humiliating command performance at Lincoln Center, the Barden Bellas enter an international competition that no American group has ever won in order to regain their status and right to perform. ''', comedy.id, user.id) pitch.image_name = 'pitch_perfect_2.jpg' db_session.add(pitch) db_session.commit() home = Item('Home', ''' Oh, an alien on the run from his own people, lands on Earth and makes friends with the adventurous Tip, who is on a quest of her own. ''', animation.id, user.id) home.image_name = 'home.jpg' db_session.add(home) db_session.commit()