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.
Svelte 5 sites don’t work as expected in Safari 12 and 13 Dec 03, 2024
Quite recently I upgraded a Svelte 4 project to Svelte 5, and soon afterwards I found some problems inside of Safari 12 and 13 that needed a tricky workaround.
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!
Putting Svelte stores inside context for fun and profit Nov 12, 2024
Solving problems by putting writable reactive stores in Svelte’s context.
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.
SvelteKit architecture tip: return a writable store from your load function Jul 20, 2024
How do you update content in real time when that content was fetched from the layout’s load function?
Hardening a web server against script kiddies Jun 09, 2024
Webservers get hit by hundreds of thousands of requests to random (non-existing) PHP files. Let’s block them using UFW and fail2ban.