예제 #1
0
def drop_db():
    with app.app_context():
        db.drop_all()
예제 #2
0
def init_db():
    with app.app_context():
        db.create_all()