Query data in Django

提供方
Coursera Project Network
在此指導項目中,您將:

Query Django models using QuerySet methods and Q objects.

Learn how to construct complex queries

Learn how to query across relationships

Clock2 hours
Beginner初級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this 1-hour long project-based course, you will learn how to use the QuerySet methods and the Q objects to query data in Django. You will generate a sample project and create a view that populates the database with sample data. You will then learn the syntax of keyword arguments to construct queries using the QuerySet methods. You will create complex queries using the Q objects, and finally you will learn how to query across relationships. 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.

您要培養的技能

  • Python Programming
  • Django development
  • Django QuerySet API
  • Object-Oriented Programming (OOP)

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create the bookstore Django project and its apps

  2. Create the setup view which will automate entry of sample data

  3. Run queries using the QuerySet method get()

  4. Run queries using the QuerySet method filter()

  5. Apply the membership and string lookup types

  6. Query using the QuerySet exclude method and nest filters

  7. Query using Q objects

  8. Query across relationships

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心