Django Training for Python Developers (DJG501)
Learn Django from expert instructors in our live, instructor-led course designed for Python developers. Enhance your web development skills with Django.
Register or Request Training
- Private class for your team
- Live expert instructor
- Online or on‑location
- Customizable agenda
- Proposal responses same day as request
- On-Demand 24/7
- Readings, Video Presentations, Exercises
- Quizzes to knowledge check
- Life-Time Access
Course Overview
Django Training for Python Developers is a hands-on course for Python programmers who want to build complete, database-driven web applications with Django. Starting with the Django project and app structure, learners work through templates, models, migrations, class-based views, forms, static files, PostgreSQL, Django Admin, URLs, slugs, email, authentication, and user registration. Frequent exercises reinforce each concept by guiding learners through the development of practical features and applications.
As the course progresses, learners work with ModelForms, relationships, media uploads, Amazon S3, QuerySets, Ajax, pagination, search, aggregation, permissions, and Django Admin customization. They also learn to optimize and inspect database queries, manage user access, handle messages and file validation, and prepare a Django application for production deployment. By the end of the course, learners will have practiced the core techniques needed to develop, enhance, troubleshoot, and deploy full-featured Django websites.
Course Benefits
- Set up Django projects, applications, virtual environments, settings, templates, and static files.
- Build database-backed features using models, migrations, PostgreSQL, ModelForms, and model relationships.
- Create list, detail, create, update, and delete workflows with Django views, forms, and URL configurations.
- Use template context, built-in filters and tags, and custom template extensions to create dynamic pages.
- Configure user registration, authentication, account pages, permissions, and access restrictions with Django and django-allauth.
- Develop forms with validation, custom widgets, Crispy Forms, file uploads, and transactional email integration with SendGrid.
- Manage media and uploaded files, including private files, images, and storage with Amazon S3.
- Apply QuerySets, relationship queries, Ajax, pagination, ordering, search, aggregation, and database constraints to interactive applications.
- Analyze and optimize Django database activity using advanced queries, SQL inspection, and the Django Debug Toolbar.
- Customize Django Admin and prepare a Django website for production deployment.
Delivery Methods
Learn at your own pace with 24/7 access.
Course Outline
- Setting Up Your Computer
- Demo and Exercise Files
- Recommended Software
- Running Python
- Getting Started with Django
- Welcome to the Server-side
- Google Chrome DevTools: Network Tab
- Creating the Virtual Environment
- Exercise: Creating a Virtual Environment and Installing Django
- Exploring the Django Source Code
- Creating a New Project
- Exercise: Hello, Django!
- Settings
- Django Apps
- Creating a New App
- Exercise: First Django App
- Exercise: Working with Templates
- Exercise: Creating an About Us Page
- Git, GitHub, and an App with a Model
- djangojokes.com
- Version Control Systems, Git, and GitHub
- Exercise: Setting Up VS Code, Git, and GitHub
- Exercise: Creating the Project
- Exercise: Creating a pages App
- Exercise: Creating the jokes App
- Models
- Exercise: Migrating
- Exercise: Creating a Model
- Types of Views
- Exercise: Creating a ListView
- Exercise: Creating a DetailView
- GET and POST Requests
- Exercise: Creating and Updating Jokes
- Deleting Objects
- Exercise: Deleting Jokes
- Template Filters and Tags
- Exercise: Setting Up the Project
- get_context_data()
- Exercise: Adding Template Context
- Template Filter Basics
- Exercise: Adding Filters
- Most Useful Template Filters
- Template Filter Quick Reference
- Template Tag Basics
- Most Useful Template Tags
- Template Tag Quick Reference
- Custom Filters
- Exercise: Creating Custom Filters
- Custom Tags
- Exercise: Creating Custom Tags
- Static Files
- Static File Basics
- Exercise: Adding Static Files to Django Jokes
- Review of the Settings
- Django Admin and the User Model
- The Database
- Exercise: Setting Up PostgreSQL
- The Default User Model
- Exercise: Creating a Custom User Model
- Referencing the User Model
- Exercise: Getting Started with Django Admin
- Exercise: Adding the jokes Table to Django Admin
- Exercise: Installing the Django Admin Documentation Generator
- URLs and Slugs
- Slugs
- Exercise: Creating a Slug-generating Function
- Exercise: Changing Jokes to Use Slugs
- Sending Email with SendGrid
- Transactional Email Services
- Exercise: Getting a SendGrid Account
- Exercise: Creating an Email Utility Function
- Forms and Widgets
- Form Processing
- Understanding Form Fields
- Exercise: Creating a Job Application Form
- Core Field Arguments
- Exercise: Building out the Application
- Typed Choice Fields
- Changing Widgets
- Exercise: Improving the Job Application Form
- Validators
- Exercise: Crispy Forms
- Exercise: Making the Joke Form Crispy
- ModelForms
- Models
- Model Fields
- Model Field Arguments
- ModelForms
- Exercise: Creating a ModelForm
- Many-to-One Relationships
- Exercise: Adding Joke Categories
- Many-to-Many Relationships
- Exercise: Adding Joke Tags
- Exercise: Updating the Joke Templates
- Exercise: Tying Job Applications to Models
- User Registration
- The User-Registration Process
- Exercise: Getting Started with django-allauth
- django-allauth Templates
- Exercise: Making the Authentication Pages Crispy
- Exercise: Updating the _base.html Template
- Email Templates
- Exercise: Custom User Registration
- Exercise: Creating a My Account Page
- Exercise: Associating Users with Jokes
- Mixins
- Exercise: Restricting Joke Creating and Updating
- Messages Framework
- Message Framework
- Exercise: Adding Messages
- Exercise: Using SuccessMessageMixin
- Exercise: Adding Success Messages to the Joke Views
- Exercise: Adding a Success Message to JokeDeleteView
- Media Files
- Media File Basics
- Exercise: Adding Media Settings
- Exercise: Uploading a Resume
- Exercise: Checking File Type
- Exercise: Keeping Resume Files Private
- Exercise: Adding an ImageField to the Model
- Exercise: Displaying the Avatar
- Amazon Simple Storage Service (Amazon S3)
- Exercise: Setting Up Amazon S3
- Exercise: Static Settings in Development
- Making Queries, Ajax, and View Functions
- Useful Prerequisites
- Managers and QuerySets
- Indexing and Slicing QuerySets
- Checking for Existence
- Creating, Updating, and Saving Model Instances
- QuerySet Methods that Don't Return QuerySets
- One-to-Many Relationships
- Many-to-Many Relationships
- Spanning Relationships
- Joke Voting
- Exercise: Adding a JokeVote Model
- Exercise: Registering the JokeVote Model
- Exercise: Adding Properties to the Joke Model
- Exercise: Rating Jokes Using Ajax
- Exercise: Adding a vote() View Function
- Exercise: Updating the URLConf
- Exercise: Updating the Templates
- Model Constraints
- Letting JavaScript Know if the User is Logged In
- Pagination and Ordering
- Fixtures
- Exercise: Loading Data from a Fixture
- Exercise: Pagination
- Exercise: Ordering
- Advanced Querying and Search
- Field Lookups
- Q Objects
- Exercise: Filtering Results by Category, Tag, or Creator
- Exercise: Implementing Search
- Aggregation
- Exercise: Getting Joke Ratings
- Code Optimization
- Exercise: Installing and Using the Django Debug Toolbar
- Brief Introduction to Annotation
- Viewing SQL Used in QuerySets
- Deploying your Website to Production
- Where to Host Your Django Site
- Exercise: Deploying to Heroku
- Customizing Django Admin
- Django Admin Views
- Exercise: Customizing Titles and Headers
- ModelAdmin Attributes that Affect the List View
- Exercise: Creating a Custom ModelAdmin Base Class
- Exercise: Customizing the Django Admin List View
- Lists vs. Tuples
- ModelAdmin Attributes that Affect Forms
- Exercise: Customizing Django Admin Form Views
- Customizing Fieldsets
- Exercise: Modifying the CustomUserAdmin Class
- Adding Calculated Read-only Fields
- Exercise: Adding a Link to the Change Password Form
- Exercise: Unregistering Models
- Exercise: Django Admin Groups and Permissions
- Additional Topics
- Additional Learning
- Additional Projects
Class Materials
Each student receives a comprehensive set of materials, including course notes and all class examples.
Class Prerequisites
Experience in the following is required for this Django class:
- Python
Experience in the following would be useful for this Django class:
- HTML
- CSS
- Bootstrap
Prerequisite Courses
Courses that can help you meet these prerequisites:
Have questions about this course?
We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.