Quirks in Django's template language part 2

Quirks in Django's template language part 2

July 25, 2025 | Articles
Django’s center filter inherits Python’s str.center odd padding behaviour, causing inconsistent centering for odd padding totals unless overridden with custom filters.
URL: https://blog.lilyf.org/posts/django-template-quirks-2/
Filed in: Articles
Sponsor banner

Sponsor Number One

Subscribe to Django News

Weekly Django news, articles, projects, and more. Curated by Jeff Triplett & William Vincent.

No spam, ever. We'll never share your email address and you can opt out at any time.