def configure_db(app): db.init_app(app) if app.config.get('ARA_AUTOCREATE_DATABASE'): with app.app_context(): db.create_all()
def createall(): db.create_all()