ooh, I really could have used this last week

Posted by: barbara | Date: Aug 11, 2008 | Updated: Sep 09, 2008 | Category: Django
I love it when I'm re-reading a page in the Django documentation, and, suddenly, out of the blue, something appears that I swear was not there last week. I spent so much time last week beating my head against a wall (figuratively speaking), trying to come up with ways ...

Read More

A terrific Django podcast

Posted by: barbara | Date: Aug 08, 2008 | Updated: Sep 09, 2008 | Category: Django
I'm generally of the opinion that any podcast needs to stay around the 20-minute mark to be effective - in this short-attention-span world, anything longer than that tends to lose my interest and gets bumped from the subscription list faster than you can say "Nano". Michael Trier is doing a ...

Read More

The stuff they don't tell you about session data and the Test Client

Posted by: barbara | Date: Aug 07, 2008 | Updated: Sep 09, 2008 | Category: Django
This article just saved me what I'm sure would have been a few hours of work/banging my head on the keyboard and a massive testing-related migraine:

The Test Client Session [dougblog.com]

Read More

PDF downloads in Django

Posted by: barbara | Date: Aug 07, 2008 | Updated: Sep 09, 2008 | Category: Django
Django is really good at serving up dynamic content.

So generating a PDF dynamically from your data is easy:

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

But a download of a static PDF file? Not so much:

http://www.stuvel.eu/pdfdownload



Read More

User groups and group permissions in newforms admin

Posted by: barbara | Date: Aug 06, 2008 | Updated: Sep 09, 2008 | Category: Django
If you follow strictly Brian Rosner's screencast on converting to newforms-admin, you'll find you suddenly end up with an admin site that takes away User and Group (permissions) editing options. That's no slight against Brian, believe me - it's a great screencast, and I wouldn't have been able to ...

Read More