Django Fundamentals

Nina Zakharenko
Principal Software Engineer
5 hours, 12 minutes CC
Django Fundamentals

Course Description

Build a complete web app with Django. Model data and relationships with Django's ORM, then create a back-office interface with the Django Admin. Add server-rendered pages with views, templates, and validated forms, and expose the same data through a an API with Django REST Framework. Take your next app from concept to completion as quickly as possible with Django.

Prerequisite: Experience with Python and building web API is recommended.
Preview

Course Details

Published: December 2, 2026

Learning Paths

Learn Straight from the Experts Who Shape the Modern Web

Your Path to Senior Developer and Beyond
  • 300+ In-depth courses
  • 24 Learning Paths
  • Industry Leading Experts
  • Live Interactive Workshops

Table of Contents

Introduction

Section Duration: 20 minutes
  • Introduction
    Nina Zakharenko begins the Django course by highlighting its history, built-in features, security defaults, maturity, and common real-world uses, while comparing it with frameworks such as Flask, FastAPI, and Django Ninja. Django is a strong choice for building complex, database-backed applications.
  • Installing Django
    Nina introduces the development environment. The setup includes Docker, UV, Python 3.14, and Git. She clones the course repo and previews the final Rescue Scout application, which has a PostgreSQL database, models, migrations, an admin interface, adoption features, permissions, and a REST API.

Your First Model

Section Duration: 44 minutes
  • Django Configs
    Nina initializes a Django project, including its configuration files, project structure, apps, and key settings. She also explores version pinning, installed apps, custom user models, debugging settings, and connecting a Django project to a PostgreSQL database.
  • Create Your First Model
    Nina creates a Django model using the ORM, defining fields, choices, defaults, and helpful model methods in Python. She also generates and applies migrations, then uses the Django shell to create and query model instances in the database.
  • Adding Status Field Exercise
    Nina guides students through adding adoption status choices to a Django animal model, setting a default status, and generating and applying the necessary migration.

Relationship & Queries

Section Duration: 53 minutes
  • Relationships & Queries
    Nina introduces relationships and database queries in Django, showing how foreign keys connect adoption applications to animals and how related records can be accessed. Querysets are used to filter, count, exclude, and retrieve records.
  • Field Lookups
    Nina introduces field lookups, filtering, ordering, slicing, and the lazy behavior of querysets. She assembles database queries with foreign-key relationships in both directions and uses techniques such as select_related, prefetch_related, and distinct to retrieve data efficiently.
  • Seed Command Exercise
    Nina guides students through migrating a complete Django adoption application model and creating a custom seed command to populate the database with realistic sample data.

Django Admin

Section Duration: 1 hour, 14 minutes
  • The Admin
    Nina introduces Django’s built-in admin interface and demonstrates how it can help shelter staff manage animals and adoption applications without having to work directly with the database. Nina also explains how permissions, validation, and approval workflows help protect private applicant information and prevent conflicting adoptions.
  • Login & Register Portal
    Nina sets up the admin interface, including creating a superuser and registering custom models. Django automatically provides useful tools such as field-specific inputs, validation, file handling, and change history for managing application data.
  • List, Search & Records
    Nina customizes the admin interface with useful columns, filters, and search fields to efficiently manage animal records. She also displays related adoption applications inline, restricts which fields can be edited, and places approval logic in the model so it works consistently across the application.
  • Saving Records & Validation
    Nina customizes model behavior by overriding the save method and using transactions to keep related animal and adoption application records consistent.
  • Users, Groups & Permissions
    Nina explains how custom permissions control who may change an animal’s status or edit adopted-animal records. She applies those permissions in the admin interface and verifies that volunteers have restricted, read-only access while employees retain the ability to make changes.
  • Admin Exercise
    Nina guides students through customizing the Django admin for employees and volunteers, including organizing adoption applications and improving search and filtering.

Views & Django Templates

Section Duration: 51 minutes

Forms

Section Duration: 31 minutes

Django REST Framework

Section Duration: 28 minutes
  • Model Serializers
    Nina introduces read-only APIs in Django using Django REST Framework, explaining how APIs connect a Django application to a modern JavaScript front end. She covers how model serializers convert Django data to JSON, validate incoming data, and prepare the foundation for serving animal records through browsable API endpoints.
  • Viewsets & Routers
    Nina builds out the API using viewsets, routers, serializers, and versioned URL patterns. She walks through how the browsable API supports both HTML and JSON responses through content negotiation and how endpoints can be customized with filtering, pagination, and additional actions.
  • API Exercise
    Nina guides students through completing the Animals API with Django REST Framework, showing them how to make API results easier to navigate and query.

Wrapping Up

Section Duration: 8 minutes
  • Wrapping Up
    Nina wraps up the course by summarizing the core features of Django and key takeaways from the lessons. She shares practical next steps for building secure, maintainable Django projects and recommends extending the app to include authentication, background tasks, search, and deployment improvements.

Earn a Completion Certificate

After completing this course, you'll receive a certificate of completion that serves as proof of your achievement, showcasing your expertise, and commitment to professional development. You can easily share this certificate on your LinkedIn profile to highlight your new skills and demonstrate continuous learning to potential employers and professional connections.

Sample completion certificate