July 2019
Beginner to intermediate
302 pages
9h 38m
English
In this recipe, we will try to create a small application where we will have a home page and a product page (such as the ones we see on e-commerce stores). We will use the Bootstrap framework to give a minimalistic design to our template. Bootstrap can be downloaded from http://getbootstrap.com/.
In this section, we have a hardcoded data store for a few products found in the models.py file. These are read in views.py and are sent over to the template as template context variables via the render_template() method. The rest ...