-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: django
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
django :: implementing reCAPTCHA in 5 easy steps
It turns out reCAPTCHA is very easy to implement Step #1: install the Python client: Step #2: obtain public and private keys here: http://recaptcha.net/whyrecaptcha.html. Step #3: Then create a small helper module, mycaptcha.py, for convenience and to keep your keys … Continue reading
Posted in django
Leave a comment
django :: date filter cheat sheet
I don’t seem able to memorize the list of format characters for the date filter, maybe because the documentation lists them in alphabetical order. I’ve created the cheat sheet below with an attempt at semantic grouping… Time seconds s Seconds, … Continue reading
Posted in django
Leave a comment
django :: media, admin and otherwise
Django’s handling of media files such as images, css, etc. has confused me from the very beginning. I’m not going to claim that I fully understand the full ramifications yet, but at least I got something working… hopefully it’ll be … Continue reading
Posted in django
Leave a comment