Understanding the project structure
Let’s look at the project files that were created for us in Chapter 1, in the Creating and running a Django project section. Open the moviesstore
project folder in VS Code. You will see the elements shown in Figure 2.1:
Figure 2.1 – The MOVIESSTORE directory structure
Let’s learn about each of these elements.
The moviesstore folder
As you can see in Figure 2.1, there is a folder with the same name as the folder we opened in VS Code originally – moviesstore
. The moviesstore
folder contains a set of files to configure the Django project. Figure 2.2 shows the content of the moviesstore
folder:
Figure 2.2 – The moviesstore folder content structure
Let’s briefly look at all the elements under the moviesstore
folder:
__pycache__
: This folder stores compiled bytecode when we generate our project. You can largely ignore this folder. Its purpose...