Custom template tags in Django

Posted by: barbara | Date: Aug 15, 2008 | Updated: Sep 09, 2008 | Category: Django
In various places in my project's site navigation, I need to be able to include dynamic content. For example, there will be a sidebar on the left that should always show a list of categories, with each one linking to its respective category page. A pretty common need on most ...

Read More

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

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

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