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.
1 parent 6c1f4a2 commit ae15876Copy full SHA for ae15876
flask_sqlalchemy/__init__.py
@@ -805,6 +805,9 @@ def init_app(self, app):
805
of an application not initialized that way or connections will
806
leak.
807
"""
808
+ if app.config.get('SQLALCHEMY_DATABASE_URI') is None:
809
+ warnings.warn(UserWarning('SQLALCHEMY_DATABASE_URI not set. Defaulting to sqlite.'))
810
+
811
app.config.setdefault('SQLALCHEMY_DATABASE_URI', 'sqlite://')
812
app.config.setdefault('SQLALCHEMY_BINDS', None)
813
app.config.setdefault('SQLALCHEMY_NATIVE_UNICODE', None)
0 commit comments