Sunday, August 31, 2008

This Week in Django 36

with hosts Brian Rosner and Michael Trier

Bookmark and Share

This Week in Django is a weekly podcast about all things Django.

This week we have James Bennett on the program discussing his book, the blog, speaking, and a whole lot more. We also discuss a few source commits, some cool projects from the community, and the Tip of the Week.

Please see the Show Notes below for all the pertinent information and links

Show Notes

Big News (1:40)

Interview – James Bennett (9:05)

James Bennett works for The World Online, the birthplace of Django, where he helps to develop Ellington, a content management system for news companies that is written in Django. He is also the Release Manager for the Django project, and an occasional contributor of code and documentation. He’s written the very popular book, Practical Django Projects for Apress and he is the man behind the always interesting blog The B-List.

Tracking Trunk (1:19:36)

Community Catchup (1:28:55)

  • Django Nashville – if you’re in the Nashville area there’s a new Google Group and plans for a meetup. We encourage you to head on over and add your name to the list.
  • django-monetize – django-monetize is a pluggable Django app which aims to make it trivial to intelligently monetize your Django projects. So far, django-monetize has built in support for Amazon Affiliates’ Custom Links, Amazon Affiliates’ Omakase, Amazon Affiliates’ Search Links, Amazon Honor System donations, Dreamhost referrals, Google Adsense ad units, Paypal donations, and SliceHost referrals.

Tip of the Week (1:40:51)

In my twitter last week I mentioned that I was frustrated by the lack of a first() method on the QuerySet so I just added one. I had a couple of people ask me how I did that. Well Django has this idea of Custom Managers that you can create for your models. I generally put this in its own managers.py module but you can put it anywhere.

from django.db import models

class PostManager(models.Manager):
def first(self):
return self.get_query_set()0

Once this is in place you need to add a line that indicates that you’ll be using your custom manager in place of the default one:

    objects = managers.PostManager()

This technique is also featured on Page 160 in Practical Django Projects. James uses the approach to wrap up some complex extra() query so it’s simply accessible from the view. It’s a great approach and something you should try to do whenever possible.

Thank You! (1:45:04)

  • Running Time: 1:48:59
  • Download: AAC, MP3, OGG

Comments - 12 people have already said something. Join the discussion.

  • trbs said

    I for one would love to see the mercurial repo for James Bennett excellent book !!

  • upole said

    First let me say i really enjoy your cast.
    But WTF did you do to your sound quality this week?
    It's all dull and overdriven...
    Really hard to listen to

  • Jeffrey Gelens said

    Also thanks for your great podcasts.
    Indeed this week the sound quality was pretty bad.

  • nono said

    What happend to the sound in the ogg version? especialy in the ogg version?

    Thxs for the show

  • Nick Efford said

    Very muffled sound in the MP3 version, too - a shame, since the sound quality of recent editions has been excellent.

  • Aaron said

    Love your pod cast, but I couldn't listen to this week because of the muffled sound. Haven't had any issues with previous weeks.

    Fortunately the notes are helpful in filling in the gaps.

  • Trey Piepmeier said

    Thanks for the mention of Django Nashville!


    Incidentally, my last name is pronounced "peep-my-er."

  • Antti Kaihola said

    Is it just me or is all speech distorted in both the MP3 and OGG editions of this episode? Music sounds just fine.

  • Daniel said

    Very bad sound quality this week :/

  • Empty said

    I apologize for the poor sound quality. I did everything I could to improve it. I might try messing with it a bit more and see if I can get it better. Thanks for being patient.

  • Brandon Konkle said

    Fantastic job on the redesign, TWID! The site now == totally awesome!

  • Paul said

    This was an excellent edition of the podcast. All three speakers were difficult to understand. Oddly, Michael, although muffled, was the easiest. The others sounded clipped and distorted.

Leave a comment

Please leave your comments below.