Exemplo n.º 1
0
Arquivo: webapp.py Projeto: 40a/ara
def configure_db(app):
    db.init_app(app)

    if app.config.get('ARA_AUTOCREATE_DATABASE'):
        with app.app_context():
            db.create_all()
Exemplo n.º 2
0
def createall():
    db.create_all()
Exemplo n.º 3
0
def createall():
    db.create_all()
Exemplo n.º 4
0
def configure_db(app):
    db.init_app(app)

    if app.config.get('ARA_AUTOCREATE_DATABASE'):
        with app.app_context():
            db.create_all()