This Week in Django 33 has been posted.
This week we discuss the NEW This Week in Django site, a bunch of source commits, and some cool projects from the community.
All show notes from now on will be on the new This Week in Django dedicated site.
This Week in Django 33 has been posted.
This week we discuss the NEW This Week in Django site, a bunch of source commits, and some cool projects from the community.
All show notes from now on will be on the new This Week in Django dedicated site.

This Week in Django is a weekly podcast about all things Django.
This week we have a very special guest, Justin Bronn, creator of GeoDjango the GIS branch of Django. 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
AAC Enhanced Podcast (53.6 MB, 1:08:44, AAC)
MP3 Edition (47.3 MB, 1:08:44, MP3)
OGG Edition (34.4 MB, 1:08:44, Vorbis)
The Enhanced Podcast version contains screenshots and easy access links to all of the items we discuss throughout the podcast.
iTunes Feeds are available. By subscribing using the iTunes feeds the podcasts will automatically be downloaded for you when we release them.
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
This Week in Django – OGG Edition
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.
Justin Bronn is a computer scientist and third-year law student at the University of Houston who enjoys studying legal topics related to intellectual property and spatial law. Prior to creating GeoDjango, Justin worked as a patent engineer for an intellectual property boutique in Houston and developed scientific data analysis applications for the Southwest Research Institute in San Antonio.
CartoAnalytics is Justin Bronn’s consulting company. CartoAnalytics provides innovative solutions to harness the power of your geospatial data.
#geodjango on freenode.(8136) – Excellent addition by Eric Forenzano and Russell Keith-Magee that allows you to add join models with extra attributes.
(8162) – It uses a token and prompts user for new password, plus also adds base36 encoding and decoding.(8191) – Removes:
extensions to django_extensions. This will happen in one week.Use decorator_from_middleware to create a decorator that can be used in your views, which wraps up a middleware class.
from django.utils.decorators import decorator_from_middleware
from django.middleware.middlewaremodule import MiddlewareClass
decoratorfunc = decorator_from_middleware(MiddlewareClass)
This code is not documented but added as part of cache reworking. See this thread for more information:

This Week in Django is a weekly podcast about all things Django.
This week we have our special guest Matthew Wensing on the show to discuss his work with the Django GIS Branch (GeoDjango). We also cover EveryBlock, Some cool projects 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
AAC Enhanced Podcast (32.9 MB, 58:00, AAC)
MP3 Edition (39.9 MB, 58:00, MP3)
The Enhanced Podcast version contains screenshots and easy access links to all of the items I discuss throughout the podcast.
iTunes Feeds are available, we have just failed to mention it. So please choose the iTunes feed if you want automatic downloads in iTunes. Please show us some iTunes love.
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
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_url_ thisweekindjango.com.
Matthew Wensing, co-founder of Stormpulse, joined us to talk about the GIS Branch, also known as GeoDjango.
The templatetag {% block %} has a not so known variable {{ block.super }}. It is documented, but it seems to be over looked. What this allows you to do is get the rendered output of the parent block and display it as you like. Take the following use case:
In a base.html you have the following bit of code:
{% block title %}My Cool Website{% endblock %}
Then in a template that extends the base.html template you want to be able to display “My Cool Website” as apart of each page:
{% extends "base.html" %}
{% block title %}My Sweet Page | {{ block.super }}{% endblock %}
The will display “My Sweet Page | My Cool Website”.
Django IRC FAQ Backwards Incompatible Changes Information
I just upgraded to the latest version and now I’m experiencing Unicode problems:
__str__ methods on your models to be __unicode__ methods.
def __str__(self):
return u'Category: %s' % (self.name,)
I keep getting this error “Reverse query name for field ’%s’ clashes with field ’%s.%s’. Add a related_name argument to the definition for ’%s’.” How do I correct it?
The error message is extremely helpful and tells you what you need to do. There are a lot of different ways this error will appear but usually the fix is the same. You need to specify a related_name argument when defining your field.
The problem often arises because you have two fields on a model that are a ForeignKey to the same table. For instance:
class Episode(models.Model):
pub_date = models.DateTimeField()
title = models.CharField(max_length=255)
slug = models.SlugField(prepopulate_from=("title",), unique=True)
categories = models.ManyToManyField(Category)
body = models.TextField(blank=True)
producer = models.ForeignKey(User, related_name='episode_producers')
host = models.ForeignKey(User, related_name='episode_hosts')
u = User.objects.get(pk=1)
u.episode_producers
u.episode_hosts