© Federico Marani 2019
Federico MaraniPractical Django 2 and Channels 2https://doi.org/10.1007/978-1-4842-4099-1_3

3. Adding the Product Catalog to the Site

Federico Marani1 
London, UK

In this chapter we will start building product pages for our BookTime website, and these will be driven by data contained in databases. We will also see how to operate on the data and how to import it from CSV files.

This chapter introduces
  • The Django ORM

  • Migrations

  • Management commands

  • Signals

  • ListView and DetailView

  • Uploaded file management

Creating the First Models

Django has a layer called the ORM, which stands for Object Relational Mapper. It is a known pattern in software and it has been around for years. It consists of wrapping all rows loaded from the database into ...

Get Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.