docs/language
Pedram Ashofteh-Ardakani 678d56c1e2
Docs: update sample application initiation in venv (#15506)
* Docs: update sample application initiation in venv

Until now, readers would install 'Flask' on their main system
python environment, freeze their entire packages, and grep only
the 'Flask' package! So they would be missing all the other
dependencies in their requirements file.

With this commit, a better practice is followed. First, create a
clean virtual environment, then install 'Flask' and freeze
everything into the requirements file.

Also, I recommend using 'python3 -m pip freeze' instead of 'pip3
freeze' while in the virtual environment. This is because
sometimes hidden quirks of 'pip' will ignore the actiavted
environment and freeze the entire python packages in the
system (e.g. in ArchLinux).

* Docs: update python sample testing application

In the previous commit, I forgot to update the 'Test the
application' section so that the users activate the virtual
environment first.

This commit fixes that.

Co-authored-by: Stefan Scherer <stefan.scherer@docker.com>
2022-10-21 14:47:24 -07:00
..
golang Refine a paragraph of docker ps in Go and Python (#15873) 2022-10-17 09:27:22 -07:00
images Add first half of Getting Started for Golang (#12168) 2021-06-14 13:28:14 +01:00
java rename docs repository 2022-09-29 11:07:53 +02:00
nodejs [Issue 12622] Node.js guide - update example code (#15922) 2022-10-20 13:32:12 -07:00
python Docs: update sample application initiation in venv (#15506) 2022-10-21 14:47:24 -07:00
index.md Remove unneeded <br> HTML tags 2022-07-14 19:54:47 +02:00