Introduction to Django Training (DJG101)
This Introduction to Django course is designed for Python developers looking to build dynamic, database-driven web applications using the Django framework. You'll learn the fundamentals of Django, from setting up your development environment to creating a complete web application, working with models, templates, and views, and managing static and dynamic content.
The course begins with Setting Up Your Computer, where you will configure your development environment, install recommended software, and learn to run Python effectively.
Next, you'll dive into Getting Started with Django, which covers the basics of server-side development, creating a virtual environment, and installing Django. You'll learn to create new projects and apps, explore Django’s source code, work with templates, and build web pages such as an "About Us" page.
The Git, GitHub, and an App with a Model module introduces version control with Git and GitHub. You'll create Django projects and apps, build models, and understand different types of views. You will also practice creating, updating, and deleting objects using Django's built-in functionality.
In Template Filters and Tags, you'll learn to use Django's powerful templating language to dynamically render content. This module covers adding template context, using template filters and tags, and creating custom filters and tags.
The course then covers Static Files, explaining how to manage and serve static files in Django, and provides exercises to add static files to your Django project.
You'll explore the Django Admin and the User Model, learning to set up and customize the Django admin interface, create custom user models, and manage database integration with PostgreSQL.
In the URLs and Slugs module, you'll learn to create slug-generating functions for SEO-friendly URLs and modify your Django models to use slugs effectively.
The Sending Email with SendGrid module teaches you how to set up email functionality using SendGrid, including creating utility functions and handling transactional emails.
Forms and Widgets covers form processing in Django, including creating and customizing forms, using different field types, and enhancing forms with Django's crispy-forms package.
You'll dive into ModelForms, where you will learn to tie forms directly to Django models, manage many-to-one and many-to-many relationships, and update your templates accordingly.
Finally, the course concludes with User Registration, covering the user registration process using django-allauth, customizing authentication pages, and implementing user-specific content such as jokes and job applications.
By the end of this Introduction to Django course, you will have a solid foundation in building and deploying dynamic web applications using Django. You will be equipped with the skills to manage databases, handle forms and user input, create custom user models, use Git for version control, and implement key features like authentication, email sending, and URL management, allowing you to create robust and scalable web applications.
- Learn how to install Django in a virtual environment.
- Create your first Django website.
- Learn to use Git and GitHub to manage Django projects.
- Learn to work with Django models that map to the database.
- Learn how to create template pages using Django’s template language.
- Learn to create your own custom template filters and tags.
- Learn to manage static files (e.g., CSS, JS, and images) in Django.
- Learn to create users using a custom user model.
- Learn to work with Django’s built-in admin site.
- Learn to send emails with Django.
- Learn to process and validate forms.
- Deep-dive into Django models.
- Learn to handle user registration and authentication.
- 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
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
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
Courses that can help you meet these prerequisites:
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors