-
Notifications
You must be signed in to change notification settings - Fork 0
superyaooo/flaskr
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
I followed the Flask tutorial on flask.pocoo.org flask Version: 0.10 I ran into some problems at step 2 and step 3 which I was able to fix. Here's what I did: - install SQLite3 - under \flaskr directory, make another directory \tmp, in \tmp create an empty file "flaskr.db" - since I use Windows here, in flaskr.py I change the path of DATABASE into: DATABASE = 'C:\\Users\\Yao\\projects\\flask_projects\\flaskr\\tmp\\flaskr.db' - also, in this part: app = Flask(__name__) app.config.from_object(__name__) app.config.from_envvar('FLASKR_SETTINGS', silent=True) I put app.config.from_object(__name__) back. For some reason, I thought I need to replace it with app.config.from_envvar('FLASKR_SETTINGS', silent=True). But without it, there's error.
About
Flask learning
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published