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'