Query Django models across relationships

Offered By
Coursera Project Network
In this Guided Project, you will:

Apply complex queries across multiple relationships

Distinguish between the filter and exclude methods across relationships

Understand the difference between the nested filters and the comma

Clock2 hours
AdvancedAdvanced
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this 1-hour long project-based course, you will learn how to perform deep filter operations over 1, 2 and 3 relationships. You will learn how to use the “in” field lookup to create a filter inside a filter. You will discover the difference between using a comma in a filter call and nesting filters via an example, and will see the difference between the implementation of the “comma” in the filter and the exclude methods. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Python ProgrammingDjango developmentObject-Relational Database (ORDBMS)Object-Oriented Programming (OOP)

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Navigate the bookstore Django app

  2. Perform deep lookups across multiple relationships

  3. Query with a filter inside a filter

  4. Apply nested filters and the comma across relationship

  5. Apply exclude across relationships

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.