from flask_sqlalchemy import SQLAlchemy from base import database db = SQLAlchemy() def init_app(app): global db db = database.init_db(app)