Waiting for Djangocon tickets
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 up a donations page. Over the weekend, I came across this article - ...
Read More
Read More
More Django testing and debugging reference
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 user being authenticated. I'm not going to go through all ...
Read More
Read More
DjangoCon!
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 peek inside the GooglePlex?). But if they're only opening it up to 200 ...
Read More
Read More
Testing Django apps
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
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
Read More





