This Week in Django 26 - 2008-06-16

This Week in Django is a weekly podcast about all things Django.
This week we talk about the Django 1.0 Roadmap, EuroPython Sprint, tons of source commits, great stuff happening in the NewForms-Admin branch, 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 (32.4 MB, 55:28, AAC)
MP3 Edition (38.1 MB, 55:28, MP3)
OGG Edition (30.8 MB, 55:28, 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 (1:37)
EuroPython Django Sprint – We are holding an official Django sprint, July 10th until saturday July 12th, during the EuroPython conference. Join us in the push to 1.0.
Tracking Trunk (9:19)
- Fixed serialization for multi-model inheritance
(7600)- Serializers were including all superclass fields in their output. Now only local fields are included.
- Implicit OneToOne? primary keys were not correctly added to the metamodel, so they were always marked to be serialized, even though they were primary
- Model saving was too aggressive about creating new parent class instances during deserialization. Raw save on a model now skips saving of the parent class.
- Prevent update on sliced queryset
(7601)– Update doesn’t reliably support limit and offset.
- Added an
--excludeoption to dumpdata(7615)– This makes it possible to exclude a particular application from the output.
- Abstracted some more database options into DatabaseFeatures
(7643)– This makes it easier to control behavior through the database backend.
- Improved fixture error reporting
(7653)– It now displays the entire traceback.
Branching and Merging (17:06)
- newforms-admin is now trunk feature compatible.
- Improvements to the ModelAdmin API.
- Added ability to pass extra_context argument to ModelAdmin’s add_view, change_view, changelist_view, delete_view and history_view methods.
(7627)- This makes it easier to customise those pages; you can over-ride the methods in your subclass and call the super method with extra_context to feed additional variables to your custom admin templates.
- Made it easier to specify a custom template to be used in the admin section.
(7630)- You can now specify index_template and login_template properties on an AdminSite subclass, and change_form_template, change_list_template, object_history_template and delete_confirmation_template properties on a ModelAdmin subclass.
- Added ability to pass extra_context argument to ModelAdmin’s add_view, change_view, changelist_view, delete_view and history_view methods.
- Formsets API is now finalized. Documentation was committed for formsets.
(7606)
Community Catchup (29:58)
- Callcast – Discussion with Eric Florenzano – Nice interview by Kevin Fricovsky with Eric Florenzano. A little raw but enjoyable.
- Django Dash Results – Congratulations to all the participants. Check the results for information on all the winners.
- 1st Place – Benjamin Pollack and Tyler Hicks-Wright – Their site was a code review site with Mercurial integration.
- 2nd Place – Eric Florenzano and Tony Hauber – Feedalizer is a syndication feed aggregation based on popular feeds ranked by users.
- 3rd Place – Justin Lilly and Jannis Leidel – A site connecting developers & translators with rankings for translators and groupings.
- A Better Serialization Framework – A series of interesting posts by fiam on creating what he calls a better serialization framework.
- DebugFooter middleware with Pygments sql syntax highlighting – In a never-ending quest to create the ultimate debug footer, Andreas Marr has created yet another version.
- js-forms – Jonathan Buchanan has been busy porting newforms to Javascript.
Tip of the Week (41:59)
If you have a template tag that you want to automatically load into context for all of your templates, you can take the same approach Django does with the built-in template tags.
This must be done early on in the load process, so in your __init__.py for the app or project, just do:
from django.template import add_to_builtins
add_to_builtins('template_utils.templatetags.generic_content')
- django-template-utils – James Bennett’s excellent template utilities
Thank You! (44:56)
- FireFox Day 6/17/08 – Download version 3.
- Firebug Extension – excellent for Javascript debugging.
- Webkit – Open source rendering engine used in Safari.
- Code Swarm – Python – amazing swarm representation of Python code commits over years of time. You have to see this!
- Brian Rosner
