Messed up columns in Django Admin

16 October 2009   1 comment   Django

Mind That Age!

This blog post is 9 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

In case this bites someone else like it bit more and chewed off many many minutes of debugging time.

If you ever get weird columns in your Django Administration interface, I now know why that happens. See this screenshot example:

Messed up columns in Django Admin

This happens when you've defined a TEMPLATE_STRING_IF_INVALID in your I always put in my this line:


So that I can quickly see which variable references in template code is potential typos. I'm not a big fan of the implicit magic of equating absence to False/None so I try to avoid the confusion altogether.


Thanks a lot, Peter.
This saves me hours of looking for the mistake ;)

Regards from Hamburg, Germany
Thank you for posting a comment

Your email will never ever be published

Related posts

Automatically strip whitespace in Django forms 12 October 2009
What I hate about PIL and Image in Python 19 October 2009
Related by Keyword:
Javascript tip: nifty use of the console.log function in Firebug 07 November 2010
Review: Django 1.1 Testing and Debugging 20 May 2010
ReCSS a tool to reload the CSS without reloading the whole page 31 January 2006
Related by Text:
Gamification for me as a software developer 21 December 2012
Amazon bug in shopping basket 05 September 2005
LOTR - Return of the King 20 December 2003
Is peanut butter the proof that evolution doesn't happen? 29 March 2007
Experimenting with Guetzli 24 May 2017