March 2026
Intermediate
758 pages
16h 9m
English
In this chapter, we will learn about Django's object-relational mapping (ORM), through which our application can interact and seamlessly work with a relational database using simple Python code, eliminating the need to run complex SQL queries. We will learn about models and migrations, which are part of Django's ORM, used to propagate database schema changes from the application to the database, and also perform database Create, Retrieve, Update, Delete (CRUD) operations. Toward the end of the chapter, we will study the various types of database relationships and use that knowledge to perform queries across related records.
We will cover the following topics in this chapter:
Read now
Unlock full access