diff --git a/superset/config.py b/superset/config.py index a6dac3ba9fea..d67c0d9dde6c 100644 --- a/superset/config.py +++ b/superset/config.py @@ -42,15 +42,15 @@ SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h' # noqa # The SQLAlchemy connection string. -SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(DATA_DIR, 'superset.db') -# SQLALCHEMY_DATABASE_URI = 'mysql://myapp@localhost/myapp' +# SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(DATA_DIR, 'superset.db') +SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123123@localhost:3306/caravel' # SQLALCHEMY_DATABASE_URI = 'postgresql://root:password@localhost/myapp' # The limit of queries fetched for query search QUERY_SEARCH_LIMIT = 1000 # Flask-WTF flag for CSRF -CSRF_ENABLED = True +WTF_CSRF_ENABLED = True # Whether to run the web server in debug mode or not DEBUG = False