Principal Software Engineer
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
Table of Contents
Introduction
Section Duration: 20 minutes
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.
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
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.
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.
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
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.
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.
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
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.
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.
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.
Nina customizes model behavior by overriding the save method and using transactions to keep related animal and adoption application records consistent.
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.
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
Nina builds a page that connects views, templates, and URL patterns to display animals. She passes data into templates, organizes templates with app namespacing, and creates reusable named URLs.
Nina introduces template inheritance, showing how to create a shared base template with reusable navigation, styling, and content blocks. She configures static files, uses dynamic URLs and template logic, and builds database queries that display available animals in a specific order.
Nina displays user-friendly labels for model choices instead of database values. She then creates detail pages for individual animals, connects them through URL patterns, retrieves records safely, and presents the information with linked templates and formatted dates.
Nina introduces Django’s class-based generic views as a way for students to reduce repetitive code when building list and detail pages.
Nina guides students through replacing an animal detail function-based view with Django’s generic class-based DetailView.
Forms
Section Duration: 31 minutes
Nina uses Django forms to build the adoption application. She demonstrates how model validation and field validators ensure submitted data is accurate and follows defined rules.
Nina builds the adoption application using a generic CreateView, then connects the model and URL data to create a functional submission page. She demonstrates how Django handles form rendering, CSRF protection, valid submissions, redirects, visitor-facing messages, and development logging.
Nina guides students through saving an adoption application by connecting the submitted form to the selected animal and validating the application data.
Django REST Framework
Section Duration: 28 minutes
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.
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.
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
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.
