Newforms-admin
I wish I could say I were more excited about yesterday's merge of the newforms-admin branch into the Django trunk. Of course, I think it's great - all those inner Admin classes in my models never rea ... Read more
I wish I could say I were more excited about yesterday's merge of the newforms-admin branch into the Django trunk. Of course, I think it's great - all those inner Admin classes in my models never rea ... Read more
One proviso before I get started - this example works with the old (as of a few days ago) version of admin, prior to the newforms-admin merge, where the models still use inner admin classes. I haven' ... Read more
Ugh - still no word on DjangoCon tickets, although the site is up and most of the schedule has been announced. Meanwhile, if you'd like to contribute to the Django Software Foundation, they've put ... Read more
I was in unit testing hell today. my big stumbling block is working with the Test Client, using its login() method, to simulate a logged in user. The rest of the views I need to test for rely on the ... Read more
DjangoCon 2008 I'm holding out hope that I might actually get to go to this, if only because I live and work nearby. It's September 6-7, 2008, at the GooglePlex (and really, who doesn't want a pee ... Read more
Running tests To launch testing, run manage.py from the project folder, passing in 'test' as an argument: ./manage.py test Writing tests You can embed doctests in your models.py, or create a s ... Read more
ModelForm seems to be the quick, easy, and reliable, way to go to create a form that stays in sync with the model. I've seen a lot of applications that use a separate forms.py, but with ModelForm, y ... Read more
Nerdy Girls Have Attained Sexy Status [AlterNet] Revenge of the Nerdette [Newsweek] Do Women Write Better Code? [Slashdot] ... Read more
Here's one of those little things I do frequently, but never remember the command. The 'locate' command searches a file name database that is updated weekly (I think the default update time is 4:30 ... Read more