Thursday, January 22, 2009

This Week in Django 51

with hosts Brian Rosner and Eric Florenzano

Bookmark and Share

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

This we talk about more 1.1 features that have landed, some community items and a tip of the week.

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

Show Notes

TWiD Updates

  • Apologizes on the late show last week.

Tracking Trunk (2:50)

All commits are trunk (1.1) only.

Community Catchup (21:23)

  • Announcing Pythug, Idaho’s Python Users Group – While not strictly Django-related, this post talks about an Idaho Python user group that is in the process of forming. He’s looking to gauge interest, so if you’re in Idaho and interested in talking Python, check out this post.
  • Washington Post Update – A post detailing a huge list of projects that Peter Harkins has been working on over at the Washington Post using Django since 2007.
  • South 0.4 Released – The team behind South has just made another major release, bumping the version up to 0.4. There are a lot of new features that are included in this release, including SQLite support and initial GeoDjango support, as well as many others.
  • Represent – Django Site of the Week – Ross Poulton continues on his excellent “Django Site of the Week” collection where each week he takes an in-depth look at a different Django site and its creators. This time he covers Represent, the New York Times GeoDjango-based website that “provides New York residents with information about the whereabouts of their elected representatives”.
  • django-pressbox – A reusable app for generating the “Press” section of a website that so many sites seem to need. Our very own Kevin Fricovsky is the man behind this app, and it looks to be a handy utility for anyone that needs it. Included in the checkout is an example site, with directions on how to try it out for yourself.

Tip of the Week (37:22)

The recent commit of the formfield_for_dbfield refactoring now gives us some new hooks. One very useful hook is the formfield_for_foreignkey. It also is given the HttpRequest so you can do further filtering.

class MyModelAdmin(admin.ModelAdmin):
def formfield_for_foreignkey(self, db_field, request, **kwargs):
if db_field.name == “car”:
kwargs[“queryset”] = Car.object.filter(owner=request.user)
return db_field.formfield(**kwargs)
return super(MyModelAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)

Thank You! (39:57)

  • Running Time: 43:56
  • Download: AAC, MP3, OGG

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

  • Lee said

    Any idea when it will show up on iTunes?

  • Peter Harkins said

    Hey, glad to hear you liked my projects update. I hope my blog was food for thought even though you don't agree with my stances. :)

    As for the Post's Django activity, even though we're a huge company almost all the Django work is done by Ryan O'Neil and I. (And there are no Rails projects anywhere, FWIW.) There's also another small team (3 guys) that does a few more Django projects like <a href="http://specials.washingtonpost.com/timespace/inauguration/">TimeSpace</a> and <a href="http://loudounextra.washingtonpost.com/">Loudon Extra</a>. In spare minutes here and there I'm working on some kind of showcase of these efforts, I'll blog again when that's live.

  • Antti Kaihola said

    Any chance of getting enclosures back to the RSS feeds? Currently my podcatcher can't automatically download the shows, so I have to fetch them manually.

  • Antti Kaihola said

    By the way, this comment form caused a usability problem for me: I spent some time wondering why I can't enter my name, email and website to the right of the corresponding labels. Finally I realized that the fields are actually below the labels. I felt silly not noticing where the mouse cursor turns into a hairpin, but in fact there's no static visual indication of where the input fields actually are (at least on Firefox 3). A box or a line would have helped.

  • codekoala said

    Thank you for mentioning Pythug! The community is also open to folks outside of Idaho, but it might be rather difficult to enjoy the "social" aspect of the PUG if you're too far away. There will be an online community for sure though; anyone and everyone will be welcome there.

    Remember... devious plans.

  • Grinch said

    Hi,

    Just wanted to say that you guys did a great job on this episode and I'm really glad that the show is in good hands.

  • BDP said

    This Week in Django seems to be on hiatus. Is it coming back?

    I'm subscribed to the ogg feed which doesn't seem to have new episodes later than January 18 (#51). I thought maybe the feed had changed without a redirect, but I can't seem to find the ogg feed or any of the other RSS with enclosures feeds linked on this website anymore.

    I really liked this show, I hope it comes back.

  • Eric Florenzano said

    BDP We're still around :) Actually, we even recorded a show last week but both of us have been so busy that we haven't had time to postprocess it. We've now recorded another show that should be ready and released on Tuesday. Thanks for listening!