Elevate your Django skills by mastering advanced database schema designs. This course will cover one-to-one, one-to-many, and many-to-many relationships in Django models. You'll learn to model relationships effectively and understand how to set up serializers and views for these complex structures.
Overview
Syllabus
- Unit 1: One-to-One Relationship in Django
- Adding and Testing a Note Model
- Add One-to-One Relationship
- Add Tests for Todo and Note
- Modify Models and Tests
- Unit 2: One-to-Many Relationship in Django
- Deleting Groups Made Easy
- Testing Todo Filtering by Group
- Adding a Priority Model
- Change Priority to ForeignKey
- Ordering Todos by Priority Score
- Unit 3: Many-to-many Relationship: Basics
- Create Tag Model and Relationships
- Enhance Tests with Shared Tags
- Tag Groups and One-to-Many Relationships
- Unit 4: Custom GET Method in Django Views
- Group Todos by Group Model
- Fix the Grouping Bug
- Testing Groups with No Items
- Improve Todo List View Functionality