#python
2026
Announcing Oxen, a simple self-hosted time-tracking and invoicing service Nov 25, 2026
Open source, self-hosted, and made with Django.
uv is fantastic, but its package management UX is a mess May 21, 2026
uv’s CLI feels surprisingly clunky compared to its peers like pnpm or Poetry.
Building modern Django apps with Alpine AJAX, revisited Mar 25, 2026
Nine months after adopting Alpine AJAX with Django, I’ve gone through template partials, Jinja2, and landed on an approach that’s both fast and clean.
It’s time to leave Heroku Feb 07, 2026
Heroku just announced it’s entering “sustaining engineering mode”. No more new features. After years of security breaches, outages, and price hikes, it’s time to leave.
Django’s test runner is underrated Jan 30, 2026
I never made the switch from unittest to pytest for my Django projects. And after years of building and maintaining Django applications, I still don’t feel like I’m missing out.
Django 6.0 Tasks: a framework without a worker Jan 19, 2026
Background tasks have always been essential in Django projects. Django 6.0 finally acknowledges that fact, but its new tasks framework stops short of what real apps need.
2025
Safe Django migrations without server errors Dec 01, 2025
How to run schema-changing Django migrations safely, avoiding schema/code mismatches and server errors during rolling deploys.
Was async Django worth it? Oct 21, 2025
Async Django is a huge technical achievement, but it solves a problem most sites simply don’t have, while adding a lot of complexity.
Run Django tests using PostgreSQL in GitHub Actions Oct 07, 2025
Did you know that you can run unit tests for your Django app, in GitHub Actions, using PostgreSQL?
How I write Django views Aug 28, 2025
Why I only use Django’s base View class instead of generic class-based views or function-based views.
Announcing django-generic-notifications 1.0.0 Aug 02, 2025
A modern, flexible rewrite of django-generic-notifications is here. Send website and email notifications, create digests, and group similar messages.
Automate Python package releases Jul 30, 2025
I maintain a handful of Python packages. Here’s how I automate creating new releases, both on PyPI and GitHub.
Django’s internationalization settings are weird Jul 18, 2025
It’s way too difficult to make Django use a 24-hour clock while using American English. Luckily it’s not impossible.
Happy 20th birthday, Django Jul 16, 2025
Django turned 20! A look back at my 16 years with it, my favorite packages, and what I’d love to see in the future.
Handling static and media files in your Django app running on Coolify Jul 08, 2025
Let’s solve the challenge of serving media files for your Coolified Django site.
Hosting your Django sites with Coolify Jul 02, 2025
How I moved my Django projects from a manual server setup to Coolify for easier, zero-downtime deployments.
Production-ready cache-busting for Django and Tailwind CSS Jun 26, 2025
I’m a big fan of the django-tailwind-cli package, but I ran into problems deploying it to production. Here’s how to make sure you cache-bust tailwind.css.
Comparing three type systems: Python, TypeScript, and Swift Jun 19, 2025
I recently ported Saga from Swift to both Python and TypeScript, giving me a direct comparison of three type systems.
Make Django show dates and times in the visitor’s local timezone Jun 12, 2025
A solution for showing dates and times in your visitor’s local timezone, all while handling the tricky first-visit problem.
Beyond htmx: building modern Django apps with Alpine AJAX Jun 11, 2025
Ditch the complex SPA. Learn how to build modern, server-rendered Django apps using Alpine AJAX and the power of hypermedia.
Announcing drf-action-serializers Jun 03, 2025
An easy way to use different serializers for different actions and request methods in Django REST Framework.
You probably don’t need a CMS Apr 15, 2025
Many people quickly reach for a big CMS package for Django, when often this is overkill. Here’s how to use a simple Django model with a CKEditor 5 WYSIWYG field.
Django Admin’s handling of dates and times is very confusing Feb 26, 2025
When you have admin users in multiple time zones, the way Django handles the input and display of dates and times is causing confusion. Here’s how you can improve things.
uv just keeps on getting better Feb 24, 2025
It’s been three months since I migrated all my Python projects over to uv. And it’s only gotten better! Let’s look at two recent major improvements.
Looking at Django task runners and queues Jan 24, 2025
I use django-apscheduler to run a queue of scheduled tasks. Now I also need the ability to run one-off tasks and that turned out to not be so simple.
2024
Why I still choose Django over Flask or FastAPI Dec 24, 2024
I started using Django in 2009, and fifteen years later I am still a happy user. It’s clear that Django is rather special.
How to migrate your Poetry project to uv Nov 18, 2024
So, like me you’ve decided to switch from Poetry to uv, and now you’re wondering how to actually migrate your pyproject.toml file? You’ve come to the right place!
Revisiting uv Nov 11, 2024
Two months ago I compared Poetry with uv, and for me uv had significant drawbacks that kept me from switching over. The situation has changed quite a bit since then!
How to change MEDIA_URL for one FileField Oct 31, 2024
I wanted to use a different MEDIA_URL for one of our FileField instances. It was very easy to do!
Django REST Framework versus Django Ninja Oct 26, 2024
Let’s compare Django REST Framework with new kid on the block, Ninja.
Automatically deploy your site when you push the main branch Oct 23, 2024
The best feature of Heroku is the ability to just push a branch, and it gets deployed. How do we replicate a workflow like that on our own server?
Trying out PDM (and comparing it with Poetry and uv) Oct 04, 2024
After comparing uv to Poetry, I am trying out PDM. On paper it combines all the best things of Poetry and uv, without their downsides. How does it hold up?
How I configure my Django projects Oct 02, 2024
There are many ways to configure Django, like multiple settings files or .env files. Here’s how I do it, using python-dotenv.
Validate PayPal webhooks using Python Oct 01, 2024
Paypal’s documentation only shows a JavaScript example. How do you validate the webhooks in Python though?
Poetry versus uv Sep 17, 2024
Comparing two Python package managers: Poetry and new kid on the block uv.
Changing the way Django 5.1 generates admin list labels Sep 16, 2024
Django 5.1 adds related field lookup to the model admin’s list_display, but with an annoying quirk. Let’s fix that!
Extend Django’s autocomplete widget actions Jul 22, 2024
Extending Django’s autocomplete widget with a new action which copies the linked user’s email address to the clipboard.
2023
Deleting anonymous users’ baskets when their sessions expire Oct 25, 2023
How do you delete baskets belonging to anonymous users when their sessions expire? It wasn’t quite as simple as I thought.
Adding custom actions to the Django Admin Jul 20, 2023
Let’s add custom actions to Django’s admin site - but to the change form, not the list view.
Setting up a Debian 11 server for SvelteKit and Django Mar 04, 2023
A complete how-to guide for setting up Debian from scratch, for SvelteKit and Django.
2021
2019
2011
Django-CMS backend usability Jan 29, 2011
Django-CMS might be the best CMS for Django on paper, but its admin interface has some real usability problems. Here’s what I don’t like, and a possible solution.
Django-CMS vs. FeinCMS vs. Mezzanine Jan 28, 2011
Comparing the three biggest content management systems for Django. In my head I know Django-CMS is the better CMS, but Mezzanine just feels better.
2009
Things I “hate” about Python and Django Dec 06, 2009
After nine years of PHP I switched to Python and Django. I really love both, but there are a couple of things that are really bugging me.
Using the Google Visualization API in Django Nov 29, 2009
How to feed Google’s Visualization API from your own Django datasource, so your data is never sent to Google.
How to dynamically add fields to a Django model Nov 26, 2009
It took me hours to get this to work, so to save you the time, here is the solution.