New here? See how enrollment works →
Python, Flask & DjangoIntermediateSelf-paced practical course

Django Models & ORM

Model data with Django models and query it with the ORM.

3 weeks duration~9 learning hours120-day course access4 modules

What you'll learn

  • Define models and field types
  • Model one-to-many and many-to-many relations
  • Filter, annotate and aggregate querysets
  • Avoid N+1 queries with select_related

About this course

You design models for a school app and write ORM queries of growing difficulty. You learn relations, querysets, aggregation and how to avoid slow queries.

Course curriculum

4 modules and 12 lessons over 3 weeks. Plan for about 9 learning hours.

01ModelsWeek 1 · 3 lessons
  1. Field types
  2. Meta options
  3. Migrations
02RelationsWeek 1 · 3 lessons
  1. ForeignKey
  2. ManyToMany
  3. Reverse lookups
03QuerysetsWeek 2 · 3 lessons
  1. filter and exclude
  2. annotate and aggregate
  3. Q and F objects
04PerformanceWeek 3 · 3 lessons
  1. select_related
  2. prefetch_related
  3. Query exercises

Project

School data model. Models and twenty ORM queries for students, courses and grades.

Who this course is for

Django learners who want to use the ORM well.

Prerequisites

You have built a basic Django project.

What's included

  • 120-day course access
  • Step-by-step lessons
  • Practice files
  • Reusable code templates
  • A graded final exercise
  • A digital completion certificate

Learning format

Self-paced practical course, part of our self-paced courses. Graded final exercise with written feedback.

Access and delivery

  1. Enrollment is activated within 15 minutes after payment.
  2. Final exercise feedback is delivered within 2 business days of submission, and the completion certificate is issued within 2 business days after passing the final exercise.

Certificate

You receive a digital completion certificate. Final exercise feedback is delivered within 2 business days of submission, and the completion certificate is issued within 2 business days after passing the final exercise.

Frequently asked questions

When does access start?

Enrollment is activated within 15 minutes after payment.

Is payment taken on this website?

No. After you submit your enrollment request, we reply by email with payment details and enrollment confirmation.

Does this course guarantee a job or income?

No. It is an education and training service and does not include employment, income or placement guarantees.

Can I cancel?

Our Refund and Cancellation Policy lists the terms for self-paced course programs.

Related courses in Python

$299