News
β DSF calls for applicants for a Django Fellow [last call]
Applications for the new Django Fellow position are open until midnight AOE on July 1st.
Updates to Django
Today 'Updates to Django' is presented by Pradhvan from the Djangonaut Space!π
Last week we had 14 pull requests merged into Django by 8 different contributors β including 1 first-time contributor! Congratulations to lukas-komischke-ameos for having their first commit merged into Django β welcome on board! π
This week's Django highlights π
PostgreSQL safety check: Added a helpful system check to catch when you forget django.contrib.postgres
in INSTALLED_APPS
, saving developers from confusing database errors.
Cleaner column aliases: Use of %
in column aliases is now deprecated.
Better content negotiation: Media type selection now properly considers quality values when choosing the preferred type for more reliable API responses.
Special shoutout to Clifford Gama who brought closure to ticket #32770 after 4 years. π¦π
Wagtail CMS
htmx accessibility gaps: data and recommendations
Analysis of htmx accessibility in Django sites reveals mixed Lighthouse scores, with specific ARIA gaps, and recommends using UI components, testing tools, and implementing carefully.
Articles
Disable runserver warning in Django 5.2
Use the DJANGO_RUNSERVER_HIDE_WARNING=true
environment variable in Django 5.2 (including via django-environ .env files) to suppress the default development server warning.
Production-ready cache-busting for Django and Tailwind CSS
Use a custom ManifestStaticFilesStorage
to skip hashing Tailwindβs source.css so django-tailwind-cli builds produce cache-busted tailwind.css via a two-step tailwind build and collectstatic
for Django projects.
Native connection pooling in Django 5 with PostgreSQL
Django 5 adds native PostgreSQL connection pooling via OPTIONS pool=True
in DATABASES
, eliminating external tools like PgBouncer and delivering over fivefold performance gains.
Markdown Virtual Table: Implementing SELECT
Demonstrates using custom Django schema editor hooks to register a Rust-based SQLite virtual table for Markdown content and frontmatter as unmanaged models.
Django: Introducing inline-snapshot-django
Inline snapshot Django provides snapshot testing of SQL queries in Django tests, automating fingerprint capture and inline updates with a Rust-based SQL fingerprinting engine.
Switching pip to uv in a Dockerized Flask / Django App
Switch from pip to uv in Dockerized Django apps to replace requirements.txt with pyproject.toml
, leverage uv lock/sync commands for faster, deterministic builds.
How to Migrate your Python & Django Projects to uv
Migrate Django projects from requirements files to uv by defining dependencies in pyproject.toml, syncing environments locally, in Docker, and CI with pre-commit integration.
DjangoCon Videos
KEYNOTE The Most Bizarre Software Bugs in History - Mia BajiΔ
We've all heard that we should test our software, but what happens when we don't? Sometimes, it leads to strange and unexplainable events.
Is 'testing more' always the right solution? What do these bugs reveal about software and its failures? And how can we use these lessons to build more resilient systems? Let's take a look at the most bizarre software bugs in history.
KEYNOTE Django for Data Science: Deploying Machine Learning Models with Django - Will Vincent
A keynote talk on learning how to train your own ML model and publicly share it using Django. Comes with a demo website and GitHub repos with source code for the ML model and Django website.
How to Enjoy Debugging in Production - Karen Tracey
While launch day is often anticipated as a satisfying completion to a project, the reality is often different. Real users in the production environment may test our code in unanticipated ways, leading to surprising bugs that need to be addressed, often under time pressure and with fewer debugging resources than we're used to having in our development environment.
Podcasts
Abstractions: Perverse Cargo Cult
Django made the Abstractions podcast this week with their guidance on AI-assisted security reports commit.
Projects
django-wiki/django-nyt
Notification system for Django with batteries included: Email digests, user settings, JSON API.
charettes/django-fk-constraint
Django app providing a foreign key constraint support multiple fields.