mirror of https://github.com/docker/docs.git
* 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> |
||
---|---|---|
.. | ||
golang | ||
images | ||
java | ||
nodejs | ||
python | ||
index.md |