Recapping the Movies Store class diagram
The class diagram of the Movies Store that we designed in Chapter 1 served as a blueprint for designing the code of the Movies Store. We have already implemented all the models required to complete the project code. So, let’s quickly recap this relationship between models and classes.
Figure 11.6 shows the class diagram, highlighting the locations where we implemented the corresponding Django models:
Figure 11.6 – Movies Store class diagram, highlighting model locations
Let’s analyze the previous figure:
- The
Movie
andReview
models were implemented inside themovies
app. - The
Order
andItem
models were implemented inside thecart
app. - The
User
model was not implemented. Instead, we took advantage of the provided Django built-in model located in theadmin.contrib.auth
app.
Finally, let’s review how a specific class relates to a model (Figure 11.7):
- 1: The...