The biggest Python topics of 2023 ›


Django Framework Updates and Security Releases

Why Is the Django Admin “Ugly”? Article

When Vince was talking with people at Djangocon US, one question kept coming up: “why is the Django admin so ‘ugly’?”

Django Unicorn: Full-Stack Components Framework Article

ΜDjango: Micro Django a Single File Project Article

Django 5.0 Released Article

Django Bugfix Release: 4.2.8 Article

Django Security Releases Issued: 4.2.7, 4.1.13, and 3.2.23 Article

Build a Blog From Scratch With Django Article

In this Django beginner project, you’ll build a blog from scratch with the Django web framework. You’ll leverage the Django admin site and explore how to work with forms so your visitors can comment on your posts.

Get Personalized Insight from Python Experts Article

We are performance tuners, Django and Python experts, infrastructure and scaling architects. We’ve worked with over a hundred companies and teams of all types. We know what works best and which roads lead to failure. Let our experience guide you, your code, and your processes to smoother waters →

Database Generated Columns With Django & SQLite Article

An introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0.

Django 4.2 Beta 1 Released Article

Django 5.0 Release Candidate 1 Released Article

Django 5.0 Beta 1 Released Article

Django Ninja 1.0 Released Article

Django 4.2.2 Bugfix Release Article

How to Render Markdown in a Django Application Article

In this tutorial, you’ll learn how to create and render web content in Django with the simplicity and flexibility of the Markdown text formatting language.

Deploying a Django + Nginx Application to a VPS With Ansible Article

This article walks you through the process of deploying a Django-on-Nginx application to Amazon Lightsail. It uses Docker to build and containerise the app and Ansible to automate the deployment.

Django: Sanitize Incoming HTML Fragments With nh3 Article

Allowing users to input HTML in comments or blog posts is problematic, it can lead to exploits on your site. For years the Django community used django-bleach, but since its deprecation, Adam has been using nh3, a Rust-based HTML sanitizer.

Django Security Releases Issued: 4.2.6, 4.1.12, and 3.2.22 Article

Create a Subscription SaaS Application With Django and Stripe Article

All the technical details of creating a subscription SaaS business using the Python-based Django web framework and Stripe payment processor.

Django Views: The Right Way Article

An opinionated guide on how to write views in Django by one of the core Django devs. Spoiler alert: he isn’t very fond of class-based-views.

Customize the Django Admin to Differentiate Environments Article

A quick post about changing the color scheme of the Django Admin depending on what environment the code is deployed within. Although Django specific, this is a great idea – visually reminding your admins and developers whether they’re in dev, staging, or production.

Django Things You Want With HTMX Article

HTMX is allowing more dynamic pages to be built with less JavaScript than before. This blog post talks about three techniques you can use to improve your HTMX pages when working with Django: HTTP 303 redirections, the django-htmx library, and using the hx-trigger header.

TIL: Django Constraints Article

Constraints in Django allow you to further restrict how data is managed in the database. This quick post covers how to use the CheckConstraint and UniqueConstraint classes in Django.

Building a RisingWave Connector for Django ORM Article

This articles shows the internals of the Django ORM. We build a prototype for a connector to the RisingWave event streaming database and enable dashboarding capabilities in Django

Django: How to Profile and Improve Startup Time Article

“Your Django project’s startup time impacts how smooth it is to work with. Django has to restart your project every time you run a management command and when runserver reloads.” Learn how to make this faster.

Best Practices for Performance in Django? Article

Adding Full Text Search to Django With django-watson Article

Learn how to supercharge your Django app with full-text search using Django-Watson. Dive deep into Postgres magic and boost search functionality.

Django 5.0 Alpha 1 Released Article

Debugging CSRF Failed Errors in Django Article

The most likely cause of a 403 Forbidden error in Django is falling foul of the CSRF protection. This article explains how to debug this problem and what you need to do to fix it.

Django REST Framework and Elasticsearch Article

This step-by-step guide shows you how to build a REST API using the Django REST Framework and Elasticsearch.

Django Hotwire Tutorial Article

Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire.

Building a Blog in Django Article

Very little code is needed to get a blog working using the Django framework. This post highlights what you need, including each of the key code components. Associated HN discussion.

Django Security Releases Issued: 4.2.5, 4.1.11, and 3.2.21 Article

Chat Using Django 4.2’s async Features Article

Django continues to add features to allow more and more asynchronous programming. This articles shows you how to use Django 4.2’s StreamingHttpResponse, Server-Sent Events, and PostgreSQL LISTEN/NOTIFY to build a chat application.

Django Security Releases Issued: 4.2.3, 4.1.10, and 3.2.20 Article

Django Security Releases Issued: 4.1.6, 4.0.9, and 3.2.17 Article

Using GeoDjango and PostGIS in Django Article

This article shows how to use GeoDjango and PostGIS to work with geospatial data in Postgres.

PSF Hiring a Part Time Django Developer Article

Django Security Releases Issued: 4.2.1, 4.1.9, and 3.2.19 Article

Django Security Releases Issued: 4.1.7, 4.0.10, and 3.2.18 Article

The Essential Django Deployment Guide Article

Going from “it works on my machine” to deploying to the public can be a daunting task. This guide details the choices between VPS and PaaS systems, how to choose, what the options are, and what you need to know to get your Django code live.

7 Sneaky Tricks to Crush Slow Database Queries Article

“Optimizing Django query performance is critical for building performant web applications.” This blog post explores a collection of additional and essential tips that help pinpoint and resolve your inefficient Django queries.

Building Search DSLs With Django Article

A Domain Specific Language is a small language for a particular application domain. GitHub has a simple example within their issue tracker allowing constraints like “is:open” to specify searching only for open tickets. This article shows you how to build your own search DSL in Django using PyParsing.

Bleach 6.0.0 Release and Deprecation Article

Bleach is an HTML sanitizing library. 6.0 has been released, along with the announcement that the package is being deprecated. The library is dependent on html5lib which is no longer maintained, the maintainers of Bleach are giving notice that their package will stop being updated after a year.

Top 10 Django Third-Party Packages Article

Will covers a list of his favorite third-party packages for Django. Includes old favorites like Django REST Framework, and lesser known packages like django-filter and django-environ.

Bullet Proofing Django Models Article

Tips and techniques for writing better ORM models in Django. Topics include atomicity, validation, logging and more.

Simulating a Broken DB Connection for Testing in Django Article

This article covers three different options for effectively testing Django database access and failure recovery when the database connection is not there.

Standout Features in Django 4.2 Article

Django 4.2 is slated for April and is currently in alpha release. This article covers some standout features that are coming, including psycopg v3 support, database comments, and lookups on field instances.

Working With AJAX in Django Article

This article looks at how to perform GET, POST, PUT, and DELETE AJAX requests in Django with the Fetch API and jQuery.

Django: Find Test Flakiness by Randomly Ordering QuerySets Article

Sometimes code depends on the order of a QuerySet while not specifying an order. This can lead to random, flaky test failures because databases can return rows in any order when none is specified. Learn how to randomly order your QuerySet when under test to detect this weird problem.

2023 Django Developers Survey Article

Supporting Multiple Languages in Django Article

This step-by-step article shows you how to add multiple language support to your Django projects. It covers the difference between localization and internationalization, and how to use both in the template engine.

Django ORM Cheatsheet Article

Filters in Django: filter(A, B) vsfilter(A).filter(B) Article

An advanced dive into the Django ORM, how it handles joins, and what that means for your code.

Django Developers Survey 2022 Results Available Article

Django 4.2.4 Released Article

Deploying a Django App to Azure App Service Article

This tutorial looks at how to deploy a Django application to Azure App Service. Includes details on configuring your Django and what Azure services to use to get going quickly.

Django Performance Optimization Tips Article

This article looks at where potential performance issues can occur in a Django application and how to address them in order to speed up your app.

Authentication With Django and Single Page Apps Article

Single Page Applications (SPA) often use passed tokens for authenticated pages. This article shows you how to use Django’s session based auth mechanism in conjunction with an SPA.

Django Bugfix Release: 4.1.5 Article

Django Email/Contact Form Tutorial Article

Coding for email isn’t too bad, but sending it can be a challenge. This tutorial walk you through how to use the popular SendGrid service as your SMTP server.

Have Python Show Warnings When Running Django Article

How to show warnings when running Python, and Django, during local development. The easy, yet not well known, way.

Support Bootstrap-Alerts in Python-Markdown Article

If you’re using Markdown on your blog, or any website, a conversion pipeline allows you to create your own rules and widgets. This article shows you how to integrate Bootstrap Alert boxes into a Markdown workflow.

Caching and Django Rest Framework Article

How and why to implement and API caching strategy when using the Django Rest Framework. A few lines of code can make a big difference in performance.

Improve Your Code With Pre-Commit Article

This article covers a variety of tools you can attach to your repo’s pre-commit hook to validate your code. Although the article is from a Django perspective, all but one of the tools covered is Django-agnostic.

Django REST Framework Authentication Article

Details how to add authentication endpoints to Django REST Framework with django-allauth and dj-rest-auth.

Sync or Async? Unpacking the Mysteries of Django Signals Article

Django signals provide a powerful way to trigger actions when specific events occur, but are they asynchronous or synchronous? In this article, we’ll explore the answer to this question and discuss the pros and cons of using Django signals in your web applications.

Using pyproject.toml in Your Django Project Article

A quick tutorial on how to use a pyproject.toml file inside of your Django projects to specify dependencies.

How to Write Tests That Need a Lot of Data? Article

Imagine you work on a Django project. You want to test your application with unit tests and integrations tests. Your application has lots of database tables, which need to be filled with realistic data for each test case. This article explains 3 techniques that will help you to fill the database with a lot of data for each test case.

What Django Deployment Is Really About Article

Beginners often stumble when it’s finally time to get their Django app online. Instead of another deployment recipe, this post seeks to explain the fundamental concepts of deploying a Django app and equip developers to think through the process for themselves when they’re ready to make the transition from their code editor to the web.

django-cities: Cities & Countries Listings for Django Projects Project

Countries and cities of the world for Django projects

waffle: Feature Flags for Django Project

A feature flipper for Django

iommi: Your First Pick for a Django Power Chord Project

Your first pick for a django power cord

django-pgcrypto-fields: Django Encryption With Pgcrypto Project

Transparent field level encryption for Django using the pgcrypto postgresql extension.

django-docker-quickstart: Django-Docker Starter Kit Project Started in 2023

Your all-in-one Django-Docker starter kit. Pre-configured services including PostgreSQL, Redis, Celery, with Nginx and Traefik for production. Streamlined development with included tools for testing and formatting.

High Performance in-Memory Cache Project Started in 2023

high performance in-memory cache

django-prose: Wonderful Rich-Text Editing for Django Project

Wonderful rich-text editing for your Django project

django-admin-confirm: Mixin for Confirming Changes Project

AdminConfirmMixin is a mixin for ModelAdmin that adds confirmations to changes, additions and actions.

django-web-components: Reusable Template Components Project Started in 2023

A simple way to create reusable template components in Django.

queryish: Data Queries Following Django’s QuerySet API Project Started in 2023

A library for constructing queries on arbitrary data sources following Django's QuerySet API

django_simple_notification: REST Notification System Project Started in 2023

simple django rest application notification system

Generate Tests for Django REST Framework Project Started in 2023

A Django Package that generates basic unittest and pytest style tests for Django REST Framework ViewSets