Creating the movies app
Currently, we have a home app that contains the logic to navigate between the Home and About pages. Now, we are going to start designing and implementing the movies logic. We prefer to separate this logic from the home app. So, let’s create a new Django app. We will follow the next steps: (i) creating the movies app, (ii) adding the movies app to settings, and (iii) including the movies URL file in the project-level URL file.
Creating the movies app
Navigate to the top moviesstore
folder (the one that contains the manage.py
file) and run the following in the Terminal:
For macOS, run the following command:
python3 manage.py startapp movies
For Windows, run the following command:
python manage.py startapp movies
Figure 4.1 shows the new project structure. Verify that it matches your current folder structure.
Figure 4.1 – The MOVIESSTORE project structure containing the movies app