diff --git a/superset/config.py b/superset/config.py index 42a46012e88d4..eeb4ded6c6de1 100644 --- a/superset/config.py +++ b/superset/config.py @@ -1649,7 +1649,9 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument # URI to database storing the example data, points to # SQLALCHEMY_DATABASE_URI by default if set to `None` -SQLALCHEMY_EXAMPLES_URI = "sqlite:///" + os.path.join(DATA_DIR, "examples.db") +SQLALCHEMY_EXAMPLES_URI = ( + "sqlite:///" + os.path.join(DATA_DIR, "examples.db") + "?check_same_thread=false" +) # Optional prefix to be added to all static asset paths when rendering the UI. # This is useful for hosting assets in an external CDN, for example