We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 419fa5e + 23d69df commit 4c48fe4Copy full SHA for 4c48fe4
flask_sqlalchemy/__init__.py
@@ -810,6 +810,9 @@ def init_app(self, app):
810
of an application not initialized that way or connections will
811
leak.
812
"""
813
+ # We intentionally don't set self.app = app, to support multiple
814
+ # applications. If the app is passed in the constructor,
815
+ # we set it and don't support multiple applications.
816
if (
817
'SQLALCHEMY_DATABASE_URI' not in app.config and
818
'SQLALCHEMY_BINDS' not in app.config
0 commit comments