This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies Find out more here
Category: Learn Django
Django Hosting & Deployment Options
[Django](https://www.djangoproject.com/) websites can be deployed on any number of hosting providers. The first choice is deciding...
Official Django REST Framework Tutorial - A Beginn...
This is a beginner-friendly guide to the official Django Rest Framework [tutorial](http://www.django-rest-framework.org/tutorial/1...
Psycopg3 Binary and Django 4.2 Installation Quick ...
One of [Django 4.2's major features](https://docs.djangoproject.com/en/4.2/releases/4.2/#psycopg-3-support) is support for [Psycop...
Top 10 Django Third-Party Packages
Django is a "batteries-included" web framework, but it really shines with its robust ecosystem of third-party packages that add ad...
Django Hello, World + Fly.io Deployment
In this tutorial, we will build a "Hello, World" website with Django and then deploy it to [Fly.io](https://fly.io/). If you want ...
Django RSS Feed Tutorial
Django comes with a built-in [syndication feed](https://docs.djangoproject.com/en/dev/ref/contrib/syndication/) for dynamically ge...
Frequently Asked Questions about Django
## What is Django? Django is a Python web framework that takes care of the difficult and common parts of web development--authenti...
Django ORM and QuerySets Tutorial
The Django [Object-Relational Mapper (ORM)](https://docs.djangoproject.com/en/dev/topics/db/) is one of the most powerful aspects ...
Django Log In with Email not Username
Django was first released in 2005 and since then a lot has changed in web development, notably the predominant pattern at the time...
pre-commit with Django
[pre-commit](https://pre-commit.com/) is a widely-used code quality framework. It allows a developer to add [hooks](https://git-sc...
Django Favicon Tutorial
This tutorial explains how to add a favicon (shortcut icon) to a Django website. A favicon is a small icon that appears at the top...
Django Best Practices: Projects vs. Apps
Within a single Django "project" can exist multiple "apps," which are used to separate discrete functionality. For example, a Djan...
Django Fixtures Tutorial: How to use dumpdata and ...
A [fixture](https://docs.djangoproject.com/en/4.2/topics/db/fixtures/) is a collection of data that can be dumped or loaded into a...
Customizing Django 404 and 500 Error Pages
For any web application, users will inevitably navigate to error pages like 404 (Page Not Found) or 500 (Server Error). Django shi...
Django Sitemap Tutorial
Django has a built-in [sitemap framework](https://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/) that allows developers to g...
Django Slug Tutorial
In this tutorial, we will add slugs to a Django website. As noted in the [official docs for slugfield](https://docs.djangoproject....
Django Dependency Management with pip-compile and ...
Even a basic Django project has multiple dependencies. After installing Django itself, various third-party packages--and their dep...
Django Stripe Tutorial
In this tutorial, we will create a Stripe-powered Django website to handle purchases. The final site will have a homepage for orde...
Why is Django's (Unofficial) Mascot a Pony?
Officially, the [Django logo](https://www.djangoproject.com/community/logos/) is a text-only combination of green and white. But...
Django Email and Contact Form Tutorial
Let's build a simple contact form that sends email from a Django 5.0 website. We can take advantage of Django's built-in [email su...