Living on the Edge

This Week in Django 30 - 2008-07-20

Posted on July 21, 2008

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

This week we discuss the NewForms-Admin merge into Trunk, DjangoCon, 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

Downloads

AAC Enhanced Podcast (41.8 MB, 49:31, AAC)

MP3 Edition (34.1 MB, 49:31, MP3)

OGG Edition (27.9 MB, 49:31, 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

Big News (0:47)

Tracking Trunk (15:04)

Community Catchup (26:16)

  • Kevin Fricovsky – joins the This Week in Django team as Community Evangelist. Kevin will be working to produce the show, contacting guests, gathering news items, coming up with ideas. Kevin has been doing this work regularly anyway so it’s great of him to team up with us to help out the program:
  • PyOhio – Reminder that this free one day conference is in Columbus, OH on July 26, 2008.
  • Twitter Search – via Kevin Fricovsky using the new Twitter Search capability to track all tweets about django.

Tip of the Week (38:32)

This tip comes to us via Ben Jao Ming in his post Django auto-translation of field values.

If you need to translate content in a field then gettext is not going to help you out. Since you can create your own custom fields it’s easy to wrap a CharField with the translation behavior:


from django.db import models
from django.utils.translation import gettext_lazy as _

class AutoTranslateField(models.CharField):
    __metaclass__ = models.SubfieldBase
    def to_python(self, value):
        return str(_(value))

Just add whatever translations you know of to the locale file and run compilemessages.

Thank You! (42:45)

Comments
  1. ChristianJuly 22, 2008 @ 02:16 PM

    Hi, you said you are missing the “tree” feature in vim, so i’d suggest you take a look at “NERD-tree” i did a quick sreenshot: http://christian.initcrash.net/nerdtree.png you can get it here: http://www.vim.org/scripts/script.php?script_id=1658

    also regarding bram moolenaars video, you said he talks about vim, because it’s what he uses..well it’s because he is the creator of vim ;-)

  2. RickJuly 23, 2008 @ 08:47 AM

    I was just looking up the site to agree with NerdTree. I made the move to only using Vim back in May. I left Eclipse and Komodo and while every editor has it’s +/- Vim has enough that I’m learning to live without some of the features of the more resource hungry editors.

    Another must have is bufexplorer. I’ve mapped it to ’\b’ and it’s a great way to move between buffers. I actually prefer this to tabs now.

  3. EmptyJuly 23, 2008 @ 11:06 PM

    Rick/Christian: Thanks you for the suggestions. I will definitely check those out.

  4. SimonbikeAugust 05, 2008 @ 08:19 AM

    I love your blog…really. Did you already hear about water on mars? :)

  5. SimonbikeAugust 05, 2008 @ 08:40 AM

    I love your blog…really. Did you already hear about water on mars? :)