Living on the Edge

This Week in Django 17 - 2008-04-06

Posted on April 07, 2008

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

This week we talk about EuroPython 2008, some cool posts and projects from the community, the Tip of the Week, and a question from the IRC.

Plus, we are fortunate to have a special appearance by Mike Axiak to discuss streaming uploads and ticket 2070.

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

Downloads

AAC Enhanced Podcast (45.3 MB, 55:54, AAC)

MP3 Edition (38.4 MB, 55:54, MP3)

OGG Edition (30.5 MB, 55:54, 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:01)

  • EuroPython 2008 – To be held in Vilnius, Lithuania from Monday July 7th – Saturday July 12th. No Django sprint officially announced as of yet.

Tracking Trunk (3:55)

  • Quite a few interesting changes in the GIS branch.
  • Thank you to all the translators
  • We’re working on an i18N show

Community Catchup (7:37)

  • Refactoring the DocumentationJacob Kaplan-Moss posted to the Django-Developers discussion list that he is doing a ton of work to refactor the Django documentation structure, breaking it up based on stakeholders.
    • Sphinx – excellent Python documentation generator
  • Streaming Uploads DiscussionMike Axiak started a great discussion on some work he’s doing to handle streaming uploads. It’s been a very active discussion thread. I know that Mike is spending a ton of time working on this along with Ticket 2070 as he’s hanging out in IRC all hours of the day and night.
  • json_encode – a great JSON encoding module by Wolfram Kriesing which he states is improved and simplified. If you are doing AJAX work you should really check this out.
  • DjangoFriendly – is a community resource for finding the friendliest Django hosting environments. Designed and developed by Ryan Berg.
  • Django Djblets – The Review Board team abstracted a set of useful helpers. Included are Authentication improvements, Flexible datagrids, Decorators, Caching functions, and Unit testing utility classes.
    • Clarification, in the show I said decorators for doing tagging, what I meant was decorator for doing a template tag. See the docs.

Tip of the Week (42:21)

  • Last week’s Tip came from Alex Gaynor. Apologies for not mentioning it.

This week’s tip is for users of the newforms-admin branch. Even if you are not using newforms-admin, this might be something to make you look at newforms-admin or just keep in the back of your mind once it is merged into trunk.

It is very possible to define your own form for both the main form and any inlines. A FormSet class is used to make inlines work which is simply some abstraction to using more than one form around some data.



# your ModelForm (probably in forms.py)
class AdminPostForm(forms.ModelForm):

    class Meta:
        model = Post

    def clean_title(self):
        value = self.cleaned_data.get("title")
        # custom validation with value here
        return value

# your ModelAdmin (probably in admin.py)
class PostAdmin(admin.ModelAdmin):
    form = AdminPostForm
admin.site.register(Post, PostAdmin)

# your model
class Post(models.Model):
    title = models.CharField(max_length=100)
    body = models.TextField()

IRC Ad Nauseam (46:41)

Django IRC FAQ

Backwards Incompatible Changes Information

  • DjangoBot Updates
    • Fixed the Time Zone bug caused by configuring settings manually because it doesn’t set the environment correctly.
    • Corrected caching problems by using file-based caching.
    • Urlize filter is very slow as detected by hotshot
    • Eric Florenzano is working on an optimized version. For more information on Eric listen to our interview with him on This Week in Django 11.

I just created a post for my new blog but the post is not showing up for about an hour. I’m using a date-based generic view. Is there some kind of caching going on?

It is possible that you have not set your time zone information appropriately in your settings file.

Thank You! (54:30)

This Week in Django 16 - 2008-03-30

Posted on March 31, 2008

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

This week we talk about a few source commits, NewForms-Admin branch updates, a whole bunch of excellent blog posts 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

Downloads

AAC Enhanced Podcast (38.6 MB, 47:34, AAC)

MP3 Edition (32.7 MB, 47:34, MP3)

OGG Edition (26.2 MB, 47:34, 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

Intro

We discuss the new intro music, the fake Brian Rosner, and all the great supporters of the show that we met at PyCon.

Tracking Trunk (4:48)

Branching & Merging (11:13)

Community Catchup (16:23)

Tip of the Week (32:27)

get_object_or_404 can take a QuerySet.


get_object_or_404(Portfolio.objects.all().select_related(), slug=slug)

IRC Ad Nauseam (36:36)

Django IRC FAQ

Backwards Incompatible Changes Information

How do you copy a model instance object?

The easiest way is to set the primary key for the model to None. Then save the instance. This will create a new record in the database.


post = Post.objects.get(pk=1)
post.pk = None
post.save()

I’m trying to run tests on my application that is just template tags. It’s not working. What’s the problem?

The testing framework requires there to be a models.py in the application. Create this file and everything should work fine.

Thank You! (43:00)

This Week in Django 15 - 2008-03-23

Posted on March 24, 2008

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

This week we talk our experience of PyCon 2008, the Django Sprint, a whole host of changesets, and updates on the Queryset Refactor and NewForms-Admin branches.

Plus, new music from Django’s own Adrian Holovaty.

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

Downloads

AAC Enhanced Podcast (40.9 MB, 50:11, AAC)

MP3 Edition (34.5 MB, 50:11, MP3)

OGG Edition (28.0 MB, 50:11, 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

New intro/outro music graciously performed by Adrian Holovaty. Check out Adrian’s performance pieces on YouTube.

PyCon Thoughts (1:37)

We discuss our PyCon 2008 experience and the Django Sprint.

Tracking Trunk (6:37)

Branching and Merging (33:20)

Thank You! (47:07)

No TWiD This Week

Posted on March 18, 2008

Although we were planning to record an episode of This Week in Django on Sunday night while we were at PyCon 2008, we were so busy coding on projects, interacting with other developers, and focussing on BDD that we decided that it was just too much to take on. We apologize and are planning to record a post-PyCon show this weekend.

This Week in Django 14 - 2008-03-09

Posted on March 10, 2008

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

This week we talk to Doug Napoleone on of the many volunteers working hard to bring us PyCon 2008 in Chicago. Doug is Software Coordinator and Webmaster for PyCon 2008 and lead developer and maintainer for PyCon-Tech. Doug gives you all the information you need to be well prepared for PyCon this week. We also announce the winners of the Win Cool Stuff Contest and some information on This Week at Pycon.

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

Downloads

AAC Enhanced Podcast (46.4 MB, 59:37, AAC)

MP3 Edition (41.0 MB, 59:37, MP3)

OGG Edition (32.2 MB, 59:37, 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

Doug Napoleone on PyCon 2008 (2:27)

Doug is Software Coordinator and Webmaster for PyCon 2008 and lead developer and maintainer for PyCon-Tech.

Doug touches on the following subjects. Lots of great information in the show. If you’re going to PyCon you want to be sure to get the scoop.

1. What’s not new this year.

2. Whats new this year. (Program guide, longer lunches, more lightning talks, vendor booths)

3. Social events (Python Lab, Board games, bag stuffing, Galcon Tournament)

4. Record attendance (And the registration problems we had)

5. Beyond the talks: (Open Space, 5th track (hallway), evening parties, Sprints)

6. Future of PyCon: (what do we do now that we have attendance breaking the 1K mark)

7. Getting there and Getting Home.

8. A brief intro to PyCon-Tech and some of the great hidden gems in there.

Win Cool Stuff Contest (43:38)

We appreciate all the submissions to the Win Cool Stuff Contest. All valid submissions will be recognized on future episodes. Our winners will have the option of appearing on the show to discuss their winning submission.

Watch the winners drawn live

The winners are:

  • Django T-Shirt – Congratulations to Paul Kenjora for his submission “Adding Custom Actions To Django Admin Change Forms”.

Special thanks go to Apress and Eminent Consulting Group for donating the prizes.

This Week at PyCon (48:34)

For the This Week in Django podcast we will be doing the following:

  • PyCon Unwind – Nightly one hour podcasts on our experience of the day. Get three or more other attendees to join us. We will do our best to slap these up on the web every day. If you want to hang out or get in on the Unwind we’ll Pownce it when / where. Free beer—hang out and have fun. We’ll be in the Dorval Int’l from 7PM to 8:30PM.
  • Impromptu Chats – Chats with people in the hallways, or wherever, etc…
  • Interviews – We are working to coordinate some interviews but since everyone is very busy at PyCon this may or may not happen.

The main thing is we are going to keep thing flexible.

Thank You! (54:26)

  • Oebfare – Brian Rosner’s excellent blog.
  • django-sqlalchemy – project to integrate Django’s models into SQLAlchemy’s ORM.

This Week in Django 12 - 2008-02-24

Posted on February 25, 2008

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

This week we discuss a few source commits, some great blog posts, the new django-dev IRC Channel and the IRC Channel Logger, the Tip of the Week, and a couple of items from the IRC channel.

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

Downloads

AAC Enhanced Podcast (38.5 MB, 46:03, AAC)

MP3 Edition (31.7 MB, 46:03, MP3)

OGG Edition (25.1 MB, 46:03, 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:01)

Tracking Trunk (1:46)

Community Catchup (8:25)

  • Python Magazine Looking for Writers – If you’re interested in getting your name in print, contact them. Additionally, the inaugural issue from October 2007 is available for free on their Web site. If you sign up for a free account, the download link will appear in list of issues available for download there.
    • PyMOTW – Python Module of the Week.

Tip of the Week (26:08)

Overriding ModelChoiceField Labels – A solution for modifying how the labels in a select box appear. Read Brian Rosner’s excellent post on the topic.

IRC Ad Nauseam (30:42)

Django IRC FAQ

Backwards Incompatible Changes Information

Django Bot

  • New Django IRC Channel Logger – The old one died, we promised you a new one. Enjoy! We’re doing it in true iterative fashion. If there is functionality you’d like to see let us know. Other channels being logged can be found here

I am creating a custom template tag, how do I get access to my template variables in my new custom template tag?

  • Django Documentation on passing template variables to the tag
  • All arguments to the tag are unpacked as string literals.
  • Resolve the string arguments to their context variable form (such as converting the string element back into a Post instance object) by using the template.Variable class.
  • In the Development version the Variable class is used instead of the resolve_variable function. Changeset 6399 made this change.

I just created a Custom Management Command Extension and it’s not showing up in the list when I type ./manage.py help. What’s the problem?

There is a bug in the Custom Management Commands where it will not find and register commands if the INSTALLED_APPS setting refers to project_name.app_name. So for the time being you need to refer to these apps that have custom management commands in them by just using app_name.

Thank You! (43:51)

This Week in Django 11 - 2008-02-17

Posted on February 19, 2008

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

This week we are pleased to have Eric Florenzano on the show. We discuss PyCon 2008, the world-wide sprint, all of Eric’s projects and a few notable blog posts, a few source commits, a new Django book, and recent changes to the Django Bot. This is definitely one of our best shows yet!

NOTE: Bumper music for Community Catchup is missing. So just sit tight for seven seconds or so.

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

Downloads

AAC Enhanced Podcast (46.2 MB, 1:22:13, AAC)

MP3 Edition (56.5 MB, 1:22:12, MP3)

OGG Edition (42.9 MB, 1:22:13, 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

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_url_ thisweekindjango.com.

Big News (1:31)

Tracking Trunk (5:09)

  • Fixed ModelForms Subclassing – to the extent that it can be made to work.

Branching & Merging (12:25)

Django Interviews (22:21)

Special interview with Eric Florenzano.

Work

  • Consultant for EyeSpot Corporation. EyeSpot delivers YouTube type content with special editing capabilities through their Web site.

Projects

Writing

Community Catchup (53:40)

  • DjangoBot Updates:
    • Added new keywords: help, ticket, and changeset
    • Added trac tracking
      • Reports in the channel when Changesets happen
      • Reports in the channel when Tickets are open, closed, or reopened
      • Multi-channel support now. Bot can live in several channels at the same time to support things like #django and #django-sprint at the same time.
      • Logging support being tested. Release will be forthcoming.

Thank You! (1:20:02)

PyCon 2008 Registration Now Open

Posted on January 20, 2008

Carl Karsten (CarlFK) just hoped onto IRC and announced that the PyCon 2008 Registration for Chicago on Friday, March 14, through Sunday, March 16, 2008 is now open.

I registered right away and only experienced one minor problem, which I let CarlFK know about. The site registration email does not contain the correct url. I received:

http:///2008/profile/activate/CODEHERE/??next=/2008/registration/new/

instead of:

http://us.pycon.org/2008/profile/activate/CODEHERE/??next=/2008/registration/new/.

Just fix it up and be on your way. Thanks to all the folks that worked really hard on the new site and to bring the conference together.

PyCon Tutorial Announced

Posted on January 08, 2008

PyCon 2008 in Chicago, IL will be offering tutorials on Thursday, March 13. The official PyCon blog just announced the tutorials that will be available. There looks to be over 29 tutorial sessions available, including a Django tutorial by Jacob Kaplan-Moss and a Django Code Lab with Jacob, Adrian Holovaty, and James Bennett. There’s also looks to be beginning and advanced tutorials on SQLAlchemy which could be quite interesting. Ah, decisions.

PyCon 2007 Talks Available

Posted on November 26, 2007

Looks like some of the PyCon 2007 talks are available for download. I really looking forward to these since I was not able to attend this year.