© 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 
(1)
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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.