← Tags

Django

6 posts

014
2026‑06‑25 django

Dual-purpose URLconf

When introducing some generic behaviour into my application, I like to separate that behaviour in some way from the remaining application code to prevent application specifics from leaking into the …

Read more
012
2026‑05‑10 djangoneapolitan

Should Neapolitan support URL Namespaces?

Yes, but the first designs reached for in #16 would introduce Neapolitan-machinery that duplicates Django primitives. Ouch. There’s a smaller change that avoids it… Many people shy away …

Read more
008
2025‑10‑16 django

Conditional Redaction in Django Templates

Today I needed to redact names of users and some other sensitive strings from a significant part of a Django application. After starting to litter template code with {% if allow_unredacted %}...{% …

Read more
007
2025‑10‑08 django

Tricking Django's title Filter

Django’s title filter is often used to prettify strings in templates, for example, when rendering model verbose names in an admin or API interface. When handling abbreviations it can be a bit …

Read more
006
2025‑10‑01 django

Testing Django Migrations with PostgreSQL and Foreign Keys

The incredibly helpful blogpost Writing Unit Tests for Django Migrations delivers what the title promises. Making testing of migrations.RunPython feasible and easy … as long as you don’t …

Read more
005
2025‑09‑25 django

Clean Django Storage Backend Configuration

TIL: You are able to pass arbitrary configuration values via the OPTIONS key to Django storage backends. They are passed as keyword arguments to the __init__ method of the storage backend. That fact …

Read more