
This Week in Django in a weekly podcast about all things Django. This Week in Django 2: PyCon 2008, ModelForms changes, Practical Django Projects book, Sphene Community Tools, Two-Faced Web, authentication decorator on generic views, and a couple questions from IRC.
Please see the Show Notes below for all the pertinent information and links
Downloads
AAC Enhanced Podcast (11.3 MB, 22:41, AAC)
MP3 Edition (10.4MB, 22:41, MP3)
The Enhanced Podcast version contains screenshots and easy access links to all of the items I discuss throughout the podcast.
Feeds Now Available
This Week in Django – AAC Edition
This Week in Django – MP3 Edition
Show Notes
Big News
- PyCon 2008 – Tutorials March 13. Conference 14 – 16, Sprints 17 – 20
Tracking Trunk
- ModelForms Change Init
(6915)– Changed__init__signature so it matches the Form class and does not require duplication of logic. - BackwardsIncompatibleChanges Wiki Page
- ModelForms allow inheritance
(6917)– allow inheritance as long as the meta model attribute is the same. - AnonymouseUser.is_active returns FALSE
(6912)– Thanks to SmileyChris for this one. AnonymousUser’s is_active method will not properly return FALSE. Note, documentation not updated. - Display PYTHON PATH on debug error page
(6908)
Community Catchup
- James Bennett’s forthcoming Apress Book announced
- The B-List – Speaking and Writing blog post indicates availability in June 2008.
- Amazon is already listing the book
- Sphene Community Tools – Django Community, Forum Application and a Wiki
- Two-Faced Django – Will Larson Irrational Exuberance blog post. Six great articles on building a project that exists on the web and on Facebook.
Tip of the Week
Decorate urls.py for Authorization
from django.views.generic.list_detail import object_list
from django.contrib.auth.decorators import login_required
protected_list = login_required(object_list)
urlpatterns = patterns('',
r'^/?$', protected_list, my_info_dict),
)
IRC Ad Naseum
I just ran a syncdb and now I’m receiving a message ‘No Fixtures Found’. Is there something wrong with my database settings. How can I correct this.
This is normal. It is telling you that there were no fixtures located in your project structure for loading. This has been modified in Changeset 6883. The message will only display now if you have a verbosity level greater than two.
I’m having problems serving static files.
- Serving Static Files Documentation – Doc page under Solving Specific Problems
- Django doesn’t server media. That’s the job of your web server or media specific web server. Some people use Apache, others choose to use something like NGINX or Lighttpd. You can also put your media up on S3 and server it directly off of their servers.
- Follow the warning about enabling only if
settings.DEBUGis True - Remember the match pattern is whatever you use for your url location. The document_root is the full directory path to the media.
- I use unipath to make it easy and portable.



Great show! you might want to consider sticking to jazz jingles – the country one kind of stnads out in a bad way :-)
A little more info on unipath in the shownotes might be good – maybe an example or link to same.
/mac
Just noticed that you had a podcast going. Checking it out now!
Martin: It was actually on purpose since it was the bumper for the IRC segment. Although, you have a point.
Thanks for the reminder I forgot all about showing the unipath stuff.
Martin, I just did a separate post on Unipath. Check it out: http://blog.michaeltrier.com/2007/12/21/using-unipath-to-keep-thing-portable
Michael, Great shows overall. Excellent music selection and great info for the Django beginner (myself) and probably more experienced users as well.
Thanks!