October 2018
Intermediate to advanced
332 pages
8h 9m
English
We have created a very simple project structure, but can it serve as the base skeleton for any Python project. In Chapter 5, Advanced Application Structure, we will get our hands on a more scalable structure, but for now, let's go back to our environment, as shown in the following code:
Dockerfile # Instructions to configure and run our application on a containerrequirements.txt # All the dependencies needed to run our application/venv # We will not add this folder to our Git repo, our virtualenv.gitignore # Instruction for Git to ignore filesmain.py # Our main Flask applicationconfig.py # Our configuration file
Remember to commit these changes in Git, as shown in the following code:
# The --all flag will tell git to stage ...