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

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心