Electric Words

Dan Ellis’s technical blog

Skip to: Content | Sidebar | Footer

Tag: python

Parameterised classes in Python

7 August, 2008 (16:41) | python | By: dan

Recently, when working with Django, I wanted to create a class that would automatically render instances of a model as an editable HTML table. I used a Django-esque approach to defining the table columns, such that it was similar to Model and Form classes:

class ProductTable(Table): _model = Product name [...]

Introduction to Django

6 August, 2008 (14:48) | python | By: dan

I haven’t had any kind of personal web site for ages, but I recently wrote an article, Introduction to Django, for Digital Web magazine, so I thought I’d put a quick something up here as a point of contact.