Fix path for windows platfrom (#742)

* At platform specific path for Windows

* At platform specific path for Windows
This commit is contained in:
Van Tien 2016-07-11 04:20:21 +02:00 committed by Maxime Beauchemin
parent 04f3e3bc8f
commit 979782d1cf

View File

@ -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'