Author Archives: tb

django :: list_display can’t sort on attribute of foreign key field…

I’m not the only one surprised by the fact that you can’t use the double-underscore-foreignkey-attribute-accessor syntax in list_display: There has been extensive discussions on the tracker ( and on the mailing list ( It seems unlikely that this will be … Continue reading

Posted in django | Tagged | 2 Comments

python :: Calculating the distance between two locations…

How far is it from point a to point b? There are complicated ways to answer this question, that e.g. takes into account whether you’re walking or driving etc. However, if you only need the approximate distance “as the crow … Continue reading

Posted in Python | Leave a comment

sphinx :: adding a new theme

Sphinx ( has made our internal documentation effort go a lot smoother, and the autodoc extension has provided much needed motivation for writing useful docstrings. For those unfamiliar with autodoc, a simple declaration in your documentation file: will automatically document … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

GoDaddy upgraded me to appalling response times…

I seem to be having just piles of problems with my GoDaddy hosting lately.  I’ve been a customer since 2006, but suddenly this June (2010) the database holding my blog went *poof*. Having spent a lot of time on … Continue reading

Posted in Uncategorized | Leave a comment