def seed(): from app.main.models import Post p1 = Post() p1.body = "Hello, welcome to the World!" db.session.add(p1) db.session.commit() pass