Skip to content

Commit

Permalink
Fix path for windows platfrom (#742)
Browse files Browse the repository at this point in the history
* At platform specific path for Windows

* At platform specific path for Windows
  • Loading branch information
tienhv authored and mistercrunch committed Jul 11, 2016
1 parent 04f3e3b commit 979782d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions caravel/config.py
Expand Up @@ -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'

Expand Down

0 comments on commit 979782d

Please sign in to comment.