mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Fix path for windows platfrom (#742)
* At platform specific path for Windows * At platform specific path for Windows
This commit is contained in:
parent
04f3e3bc8f
commit
979782d1cf
@ -34,6 +34,9 @@ SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h' # noqa
|
||||
|
||||
# The SQLAlchemy connection string.
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/caravel.db'
|
||||
# this is for platform specific: "nt" is for windows, "posix" is *nix (including Mac)
|
||||
if os.name == "nt":
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///c:\\tmp\\caravel.db'
|
||||
# SQLALCHEMY_DATABASE_URI = 'mysql://myapp@localhost/myapp'
|
||||
# SQLALCHEMY_DATABASE_URI = 'postgresql://root:password@localhost/myapp'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user