def create_tables(): with application.app_context(): db_create_tables(application.config['SQLALCHEMY_DATABASE_URI'])
def create_tables(): db_create_tables(current_app.config['SQLALCHEMY_DATABASE_URI'])