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 (https://code.djangoproject.com/ticket/5863) and on the mailing list (http://groups.google.com/group/django-developers/browse_thread/thread/790484bfbe1b421f). 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 (http://sphinx.pocoo.org/) 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 archive.org … Continue reading

Posted in Uncategorized | Leave a comment