Messed up columns in Django Admin

16 October 2009   1 comment   Django

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

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 keywords:
Javascript tip: nifty use of the console.log function in Firebug 07 November 2010
ReCSS a tool to reload the CSS without reloading the whole page 31 January 2006
Review: Django 1.1 Testing and Debugging 20 May 2010