File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ __pycache__
66
77htmlcov
88migrations
9+
10+ env
11+ venv
12+
13+ .DS_Store
Original file line number Diff line number Diff line change 1+ 3.6.4
Original file line number Diff line number Diff line change @@ -11,22 +11,16 @@ Flask starter project...
11111 . Create and activate a virtualenv
12121 . Install the requirements
1313
14+ ### Set Environment Variables
1415
15- ### Configuring
16-
17- Inspect and update ` project/server/config.py ` .
18-
19-
20- ### Setting Environment Variables
21-
22- Eg: for using the development config with debug mode enabled
16+ Update * project/server/config.py* , and then run:
2317
2418``` sh
2519$ export APP_SETTINGS=" project.server.config.DevelopmentConfig"
2620$ export FLASK_DEBUG=1
2721```
2822
29- Alternatively using pipenv or python-dotenv you can define your application configuration in the ` .env ` file.
23+ Using pipenv or python-dotenv? Use the * .env* file to set environment variables:
3024
3125``` sh
3226APP_SETTINGS=" project.server.config.DevelopmentConfig"
You can’t perform that action at this time.
0 commit comments