Testing Django apps

Posted by: barbara | Date: Jul 15, 2008 | Category: django | Comments: 0

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 separate tests.py (it should live at the app level, in the same place as models.py and views.py) ...

Read More

An irritating gotcha with Django newforms and ModelForm

Posted by: barbara | Date: Jul 07, 2008 | Category: django | Comments: 0
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, you can create a clean, simple form definition just by adding a few ...

Read More

apparently, we're a phenomenon now

Posted by: barbara | Date: Jun 21, 2008 | Category: girl geeks | Comments: 0
Nerdy Girls Have Attained Sexy Status [AlterNet]

Revenge of the Nerdette [Newsweek]

Do Women Write Better Code? [Slashdot]



Read More

update locate database for Mac Os X

Posted by: barbara | Date: Jun 05, 2008 | Category: mac os x | Comments: 3
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 am every Saturday morning, but only if your Mac is switched on then, which mine never ...

Read More

Installing Django with MySQL on Mac OS X

Posted by: barbara | Date: Jun 04, 2008 | Category: django mac os x mysql python | Comments: 10
Django's official installation instructions are here:

http://www.djangoproject.com/documentation/install/

However, they get a little vague around the section titled "Get your database running".

I followed this post and, aside from a few missing notes, got the Django/MySQL install done in about 15 ...

Read More