Skip to content

Commit 042a160

Browse files
authored
Merge pull request #2 from Microsoft/kraigb-issue001
Updates per Adrian
2 parents 7b7d6cf + 2b33f13 commit 042a160

File tree

18 files changed

+74
-65
lines changed

18 files changed

+74
-65
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"request": "launch",
6565
"module": "flask",
6666
"env": {
67-
"FLASK_APP": "HelloFlask/app.py"
67+
"FLASK_APP": "hello_app/app.py"
6868
},
6969
"args": [
7070
"run",
@@ -122,4 +122,4 @@
122122
]
123123
}
124124
]
125-
}
125+
}

HelloFlask/app.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

HelloFlask/templates/about.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

HelloFlask/templates/contact.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

HelloFlask/templates/hello_there.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

HelloFlask/templates/home.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

HelloFlask/views.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
This sample contains the completed program from the tutorial, [Using Flask in Visual Studio Code](https://code.visualstudio.com/docs/python/tutorial-flask). Intermediate steps are not included.
2+
3+
Contributions to the sample are welcome. When submitting changes, also consider submitting matching changes to the tutorial, the source file for which is [tutorial-flask.md](https://github.com/Microsoft/vscode-docs/blob/master/docs/python/tutorial-flask.md).
4+
15

26
# Contributing
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from flask import Flask
2-
app = Flask(__name__)
2+
app = Flask(__name__)

hello_app/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from hello_app import app
2+
from hello_app import views
3+
4+
# Time-saver: output a URL to the VS Code terminal so you can easily Ctrl+click to open a browser
5+
# print('http://127.0.0.1:5000/hello/VSCode')

0 commit comments

Comments
 (0)