After creating the model for the games and the prices, we have reached the fun part of this section, which is to create the views and templates that will display the games on the page. Let's get started!
So, we have created a template called index.html in main/templates/main, but we are not displaying anything on it. To make that page more interesting, we are going to add two things:
- A section on the top of the page that will display the games that we want to highlight. It could be a new game that arrived at the store, a very popular game, or some game that has a good price for the moment.
- Following the section with the highlighted games, we are going to list all the other games.
The first template ...