This Week in Django 16 - 2008-03-30

This Week in Django is a weekly podcast about all things Django.
This week we talk about a few source commits, NewForms-Admin branch updates, a whole bunch of excellent blog posts from the community, the Tip of the Week, and a couple of questions from the IRC.
Please see the Show Notes below for all the pertinent information and links
Downloads
AAC Enhanced Podcast (38.6 MB, 47:34, AAC)
MP3 Edition (32.7 MB, 47:34, MP3)
OGG Edition (26.2 MB, 47:34, Vorbis)
The Enhanced Podcast version contains screenshots and easy access links to all of the items we discuss throughout the podcast.
Feeds Available
iTunes Feeds are available. By subscribing using the iTunes feeds the podcasts will automatically be downloaded for you when we release them.
iTunes Feeds
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
Regular RSS Feeds
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
This Week in Django – OGG Edition
Give Us Feedback
Want to give us some feedback on the show? We’re always looking for ideas or suggestions that will help improve each episode. Please contact us at feedback __at__
thisweekindjango.com.
Show Notes
Intro
We discuss the new intro music, the fake Brian Rosner, and all the great supporters of the show that we met at PyCon.
Tracking Trunk (4:48)
-
Converted the Admin to use the new paginator
(7363)
– follows on last week’s Changeset 7306 which implemented the new paginator syntax.
-
Removed the ado_mssql Backend
(7364)
– Yeah, out with the cruft.
-
Added Basics to build Docs with Sphinx
(7370)
– Sphinx is a really nice Python documentation generator.
Branching & Merging (11:13)
Community Catchup (16:23)
- Django Error Notification with Jabber – Awesome post by Nuno Mariz where he describes how to setup Django to send website errors to your IM client. The implementation is elegant and simple.
- Using Jinja With Django – a bit controversial, but a good read. David Cramer has been posting regularly with some thought provoking posts.
- A Faster Django Test Suite – Brian Rosner tests out an implementation of Django’s test suites that take advantage of multiple cores.
- More Django Queryset Notes and Queryset Implementation – Excellent posts by Malcolm Tredinnick on the internals of some of the Queryset Refactor stuff and sets the record straight on a couple of items that we incorrectly commented on last week.
-
Django Snippets: Control FCGI processes through management – Snippet that adds fcgi to
settings.INSTALLED_APPS
, which allows you to start and stop FCGI processes throughmanage.py
- Eric Florenzano’s Blog and his Django People profile
- FormWizard: multiple-step forms in Django – Great post by Jared Kuolt (aka SuperJared) that quickly follows on the heals of the last week’s Changeset 7236 which added a new django.contrib.formtools.wizard app.
Tip of the Week (32:27)
get_object_or_404 can take a QuerySet.
get_object_or_404(Portfolio.objects.all().select_related(), slug=slug)
IRC Ad Nauseam (36:36)
Backwards Incompatible Changes Information
How do you copy a model instance object?
The easiest way is to set the primary key for the model to None
. Then save the instance. This will create a new record in the database.
post = Post.objects.get(pk=1)
post.pk = None
post.save()
I’m trying to run tests on my application that is just template tags. It’s not working. What’s the problem?
The testing framework requires there to be a models.py
in the application. Create this file and everything should work fine.