Introduction to Django Training

Introduction to Django Training

Course Length:
Delivery Methods:
Next Live Class:Jan 4-8, 2021 10AM-5PM ET
Course Topics
  • Getting the demo and exercise files.
  • Installing software.
  • Setting up a virtual environment.
  • Installing Django.
  • Creating your first Django website.
  • Git and GitHub.
  • Django Models.
  • Migrations.
  • Built-in template filters.
  • Built-in template tags.
  • Custom template filters and tags.
  • What is a “static” file?
  • Managing static files in Django.
  • The default user model.
  • Superusers.
  • Django admin.
  • Slugs.
  • Utility functions.
  • Overriding models.Model.save().
  • Development settings.
  • SendGrid.
  • Sending email.
  • Form processing.
  • Form fields.
  • Widgets.
  • Validators.
  • Crispy Forms.
  • Models revisited.
  • Model fields.
  • Model field arguments.
  • ModelForms.
  • Many-to-one relationships.
  • Many-to-many relationships.
  • Registering.
  • Logging in and out.
  • Email.
  • Account management.
  • Resetting passwords.
Available Delivery Methods
Public Class
Public expert-led online training from the convenience of your home, office or anywhere with an internet connection. Guaranteed to run .
Private Class
Private classes are delivered for groups at your offices or a location of your choice.
Course Overview

In this course, you will learn to use Django to build a website like the one at www.djangojokes.com. The course assumes no prior knowledge of Django, but you must have experience with Python. If you do not, we can customize a private class for groups to cover the Python you need to know to work with Django.

Course Outline
  1. Setting Up Your Computer
    1. Demo and Exercise Files
    2. Recommended Software
    3. Running Python
  2. Getting Started with Django
    1. Welcome to the Server-side
    2. Google Chrome DevTools: Network Tab
    3. Creating the Virtual Environment
    4. Exercise: Creating a Virtual Environment and Installing Django
    5. Exploring the Django Source Code
    6. Creating a New Project
    7. Exercise: Hello, Django!
    8. Settings
    9. Django Apps
    10. Creating a New App
    11. Exercise: First Django App
    12. Exercise: Working with Templates
    13. Exercise: Creating an About Us Page
  3. Git, GitHub, and an App with a Model
    1. djangojokes.com
    2. Version Control Systems, Git, and GitHub
    3. Exercise: Setting Up VS Code, Git, and GitHub
    4. Exercise: Creating the Project
    5. Exercise: Creating a pages App
    6. Exercise: Creating the jokes App
    7. Models
    8. Exercise: Migrating
    9. Exercise: Creating a Model
    10. Types of Views
    11. Exercise: Creating a ListView
    12. Exercise: Creating a DetailView
    13. GET and POST Requests
    14. Exercise: Creating and Updating Jokes
    15. Deleting Objects
    16. Exercise: Deleting Jokes
  4. Template Filters and Tags
    1. Exercise: Setting Up the Project
    2. get_context_data()
    3. Exercise: Adding Template Context
    4. Template Filter Basics
    5. Exercise: Adding Filters
    6. Most Useful Template Filters
    7. Template Filter Quick Reference
    8. Template Tag Basics
    9. Most Useful Template Tags
    10. Template Tag Quick Reference
    11. Custom Filters
    12. Exercise: Creating Custom Filters
    13. Custom Tags
    14. Exercise: Creating Custom Tags
  5. Static Files
    1. Static File Basics
    2. Exercise: Adding Static Files to Django Jokes
    3. Review of the Settings
  6. Django Admin and the User Model
    1. The Database
    2. Exercise: Setting Up PostgreSQL
    3. The Default User Model
    4. Exercise: Creating a Custom User Model
    5. Referencing the User Model
    6. Exercise: Getting Started with Django Admin
    7. Exercise: Adding the jokes Table to Django Admin
    8. Exercise: Installing the Django Admin Documentation Generator
  7. URLs and Slugs
    1. Slugs
    2. Exercise: Creating a Slug-generating Function
    3. Exercise: Changing Jokes to Use Slugs
  8. Sending Email with SendGrid
    1. Transactional Email Services
    2. Exercise: Getting a SendGrid Account
    3. Exercise: Creating an Email Utility Function
  9. Forms and Widgets
    1. Form Processing
    2. Understanding Form Fields
    3. Exercise: Creating a Job Application Form
    4. Core Field Arguments
    5. Exercise: Building out the Application
    6. Typed Choice Fields
    7. Changing Widgets
    8. Exercise: Improving the Job Application Form
    9. Validators
    10. Exercise: Crispy Forms
    11. Exercise: Making the Joke Form Crispy
  10. ModelForms
    1. Models
    2. Model Fields
    3. Model Field Arguments
    4. ModelForms
    5. Exercise: Creating a ModelForm
    6. Many-to-One Relationships
    7. Exercise: Adding Joke Categories
    8. Many-to-Many Relationships
    9. Exercise: Adding Joke Tags
    10. Exercise: Updating the Joke Templates
    11. Exercise: Tying Job Applications to Models
  11. User Registration
    1. The User-Registration Process
    2. Exercise: Getting Started with django-allauth
    3. django-allauth Templates
    4. Exercise: Making the Authentication Pages Crispy
    5. Exercise: Updating the _base.html Template
    6. Email Templates
    7. Exercise: Custom User Registration
    8. Exercise: Creating a My Account Page
    9. Exercise: Associating Users with Jokes
    10. Mixins
    11. Exercise: Restricting Joke Creating and Updating
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Python class:

  • Python

Experience in the following would be useful for this Python class:

  • HTML
  • CSS
  • Bootstrap
Prerequisite Courses

Courses that can help you meet these prerequisites:

Follow-on Courses
Register for a Live Class
$2,875.00
  • See More Class Dates

Please select a class.
Request a Private Class
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors
Request Pricing