Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaskr tutorial suggestion - Use DATABASE='flaskr' instead of DATABASE='/tmp/flaskr' #782

Closed
maveryKearney opened this issue Jun 27, 2013 · 5 comments

Comments

@maveryKearney
Copy link

Title says it all.
1..DATABASE='flaskr' works for windows and linux
2..DATABASE='/tmp/flaskr' only works for linux and probably OS10

@untitaker
Copy link
Contributor

I think some absolute path for Windows is much more desirable. Not sure what it'd be though.

@mitsuhiko
Copy link
Contributor

/tmp/flask also works on windows if someone creates a folder called "tmp" on the C: drive. But maybe we should change that.

@mitsuhiko
Copy link
Contributor

Not to a relative path though, that's a bad idea since WSGI does not support relative paths.

@untitaker
Copy link
Contributor

See #808

mitsuhiko added a commit that referenced this issue Jul 26, 2013
@nachimehta
Copy link

Even on OS X '/tmp/flaskr.db' wasn't working. Had to not only create the db file in my project folder but give the absolute path to it as well.. i.e. '/Users/username/path/to/db'

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants