Useful form tricks in Django

July 24, 2008 at 12:46 am | Posted in django | 9 Comments

Not much text to put in this post, I just want to show a few useful things you can do with a ModelForm in django, so I can quit retyping examples 🙂
Continue Reading Useful form tricks in Django…

Editing multiple objects in Django with forms

February 18, 2008 at 1:45 pm | Posted in django | 6 Comments

A common problem I see when helping people in the Django IRC channel is people who are trying to create or edit multiple objects, but for some reason try to make a single form object to deal with them – this makes things quite convoluted and much harder than they have to be. My goal here is to explain a much simpler method using multiple form objects.
Continue Reading Editing multiple objects in Django with forms…

Tab-Complete and a Persistent History in Python

November 17, 2006 at 9:15 pm | Posted in python | 4 Comments

Earlier today, in #django on freenode, the topic of tab-complete in the python shell happened to come up – at first, I thought it wasn’t possible in standard python, and only in other python interpreters.

Thankfully, a link was posted with info on the readline and rlcomplete modules – at first, I couldn’t get their example working to load on startup, so upon further investigation, not only did I get that quirk worked out, but I stumbled across another module that lets you hook on start/exit to save/load a history file, much like bash.

Continue Reading Tab-Complete and a Persistent History in Python…

Blog at WordPress.com.
Entries and comments feeds.