diff --git a/zou/app/__init__.py b/zou/app/__init__.py index 7e1a244fc4..3a832411e4 100644 --- a/zou/app/__init__.py +++ b/zou/app/__init__.py @@ -44,6 +44,7 @@ db = SQLAlchemy(app) migrate = Migrate(app, db) # DB schema migration features +app.extensions["sqlalchemy"].db = db app.secret_key = app.config["SECRET_KEY"] jwt = JWTManager(app) # JWT auth tokens