Conteúdo do Curso
Django ORM Ninja: Advanced Techniques for Developers
Django ORM Ninja: Advanced Techniques for Developers
Start a New Project
Let's embark on a new project where we will explore all the features of the ORM. Here's an overview of the project structure:
We'll create a bookstore application where each table will be represented as a model (class), and each column name will become an attribute. The curved lines connecting the tables represent relationships. Throughout this course, we will implement two common types of relationships: Many-to-One and Many-to-Many.
The first connection we'll explore is the Many-to-Many relationship, where each author can write multiple books, and each book can have multiple authors. In the case of the second relationship, we will focus on the concept that each book belongs to a single literary genre, while one genre can correspond to many books (Many-to-One).
Obrigado pelo seu feedback!