From 3dac6ef3d70319e0a8b11d2cb52475d334f93ec2 Mon Sep 17 00:00:00 2001 From: Van Tien Date: Sun, 10 Jul 2016 18:47:44 +0200 Subject: [PATCH] At platform specific path for Windows --- caravel/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caravel/config.py b/caravel/config.py index 4babe71528dbb..d8d12e3ad0848 100644 --- a/caravel/config.py +++ b/caravel/config.py @@ -34,6 +34,9 @@ # 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'