- This sample contains the completed program from the tutorial, make sure to visit the link: Using Flask in Visual Studio Code. Intermediate steps are not included.
- This application is ready to be Dockerized and run in a container. For steps, see Python in containers.
To run the sample:
- In VS Code Terminal, run
python -m venv env
to create a virtual environment as described in the tutorial. - Press Ctrl + Shift + P and run command
Python: Select Interpreter
. - Activate the virtual environment by running
source env/bin/activate
(Linux/MacOS) orenv/scripts/activate
(Windows). - In terminal, run
pip install flask
. - From Run and Debug section, select
Python: Flask
task and hit F5.
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.
Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot automatically determines whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
- This project has adopted the Microsoft Open Source Code of Conduct.
- For more information see the Code of Conduct FAQ or
- Contact [email protected] with any additional questions or comments.