Ian Lewis Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development.
About Me...

Annoying things about Django

Since I've been using it for a while now I've gotten a good idea about what is good and what is annoying about development with django. This might seem a little trite at parts since some of these gripes are with features that don't exist in other frameworks but in the spirit of perhaps making django more flexable without ruining it's ease of use I've come up with some annoying spots and possi[...]

Custom Admin Views and Reversing Django Admin URLs

I recently used the new feature in Django 1.1 for reversing django admin urls and specifying custom admin views in my project django-lifestream. django-lifestream has a custom admin view which allows users to update the lifestream manually. The code looks like the following: class ItemAdmin(admin.ModelAdmin): list_display = ('title', 'date','published') exclude [...]

Preview blog posts within the django admin.

I implemented blog post previews for my blog using the technique described here: http://latherrinserepeat.org/2008/7/28/stupid-simple-django-admin- previews/ It's very simple as it is simply a view using an existing record. I'd prefer something that allows you to preview without having to save before you do but that would mean you would either have to put all the data in the url as GET param[...]

Django admin inline forms

For my new project dlife (Update: Now django-lifestream), I went about implementing a simple comments interface that would allow users to make comments on imported feed items. I wanted to support this in the admin in the typical manner such that when you click on an item in the admin, you can see all the comments and edit them from the item's page. I found that you can use inline forms in th[...]