Tutorials
A complete list of free Django tutorials.
-
Flask vs Django (2023)
A comparison of the two leading Python-based web frameworks.
-
Django File (and Image) Uploads Tutorial
Build an Instagram clone in Django with user-uploaded files and images.
-
Frequently Asked Questions about Django
Answers to common questions about Django, Python, and web development.
-
How to Install Django
Tutorial on installing Django 4.2 and Python 3.11 on Windows and macOS computers.
-
Django RSS Feed Tutorial
How to add an RSS or Atom feed to a Django project.
-
Django Sitemap Tutorial
Build a Django recipe app and add a sitemap for SEO.
-
Django Favicon Tutorial
How to add a favicon to any Django website.
-
Django Slug Tutorial
How to add URLs via slugfield to a Django project.
-
Django Hello, World + Fly.io Deployment
Deploying Django on Fly.io with a basic website.
-
Deploy Django + PostgreSQL on Fly.io
Step-by-step instructions to deploy a Django app with PostgreSQL database on Fly.io.
-
Top 10 Django Third-Party Packages
The best Django third-party packages to add to any website.
-
Psycopg3 Binary and Django 4.2 Installation Quick Tip
A quick tip on updating to Psycopg3 in the Django 4.2 release.
-
Django Static Files and Templates
How to configure static files for local development and production.
-
Official Django REST Framework Tutorial - A Beginners Guide
A beginner-friendly guide to the official Django REST Framework.
-
How to Learn Django (2023)
A guide to learning Django (Python) for beginners and intermediate/advanced developers.
-
Django Hosting & Deployment Options
Free and paid Python Django web hosting.
-
Django Hello, World 5 Different Ways
A Django homepage implemented five different ways.
-
Django Log In with Email not Username
Update the default Django log in with a custom user model and django-allauth.
-
Django Email/Contact Form Tutorial
Send Django emails with SendGrid.
-
Command Line for Beginners
Learn command line basics for macOS and Windows.
-
Django Best Practices: Referencing the User Model
Exploring the 3 different ways to refer to the User model in Django.
-
Django Best Practices: Function-Based Views vs Class-Based Views
An overview of the history and pros/cons of each approach.
-
The 10 Most-Used Django Packages
Django-related downloads according to PyPI
-
What's New in Django 3.1
An overview of new features and deprecations in Django 3.1
-
Django Testing Tutorial
Best practices for Django unit and integration tests for models, views, forms, and templates.
-
Django Best Practices: Template Structure
Best practices for templates in Django.
-
Django Polls Tutorial API
Make a web API out of the official Django polls app tutorial.
-
NameError: name 'os' is not defined
How to fix this common error for Django 3.0 and earlier
-
How to Get Hired as a Django Developer
Advice on getting a job/hired and having a career as a Django/Python developer.
-
Django Best Practices: Custom User Model
Implement and add extra fields to a custom user model in Django.
-
What is Django (Python)?
An overview of the popular Python-based web framework.
-
Trailing URL Slashes in Django
Why it's a good idea to add them and how Django works under-the-hood.
-
Django Markdown Tutorial
How to add Markdown functionality to any Django website.
-
Is Django a Full Stack Framework?
Clearing up common confusion on front-end vs back-end.
-
Django Rest Framework Tutorial: Todo API
Build a Todo API with serializers, viewsets, and routers.
-
Django Password Reset Tutorial
Implement user authentication with a password reset for Django 4.0.
-
Django Signup Tutorial
Add a sign up/user registration page in Django 4.0.
-
Django Login and Logout Tutorial
How to implement login and logout in Django 4.0.
-
Django Search Tutorial
Add basic search functionality to any Django website.
-
Django, Docker, and PostgreSQL Tutorial
Set up a new Django project using Docker and PostgreSQL.
-
Django-allauth Tutorial
Learn how to add third-party (social) authentication to your Django site.
-
Database Design Tutorial for Beginners
An introduction to databases and primary/foreign keys.
-
Django Best Practices: User permissions
How to configure user permissions in a Django project.
-
Django Best Practices: Security
Django security features for any production website.
-
Django Best Practices: Projects vs Apps
An explanation of Django structure and what constitutes an app.
-
Django Best Practices: Models
A list of tips for designing better models in Python/Django.
-
Django Best Practices: Imports
Python and Django best practices for imports.
-
Django Best Practices: Docker
Why Docker improves Django development.