Living on the Edge

Django Screencasts 4 - NewForms Personalization

Posted on December 13, 2007

In this screencast I cover NewForms Personalization. Often you have a drop down or some other field in your NewForm that you need to have personalized, or changed based on the logged in user or other instance criteria. This screencast will show you how to accomplish that in your applications.

Source code for the screencast is provided below. Please be sure to read the README file included in the download.

Downloads

Regular (20.8 MB, 13:31, H.264, MP4)

IPod (9.8 MB, 13:31, H.264, MP4)

Source Code (124 KB)

Requires the latest version of QuickTime, VLC Media Player, or comparable software capable of playing MP4 container format and the H.264 codec.

Show Notes

Comments
  1. janrDecember 13, 2007 @ 11:56 AM

    You could define init as:

    def init(self, user, **kwargs): ...

    That way, user never ends up in the kwargs dictionary.

  2. John MDecember 13, 2007 @ 06:18 PM

    Wow, that was great! I’m still learning both Python and django, and these are really helpful.

    I was wondering, do you publish your django app source anywhere? but your delnquent app is interesting from a learning perspective.

    Thanks again, and keep ‘em coming.

    J

  3. EmptyDecember 13, 2007 @ 11:44 PM

    janr: yeah a much better idea. Thanks.

    John M: The source code is available above in the downloads section. It’s the application I was working with in its completed state. It’s all MIT License so feel free to do whatever you wish.

  4. itsnotvalidDecember 14, 2007 @ 11:18 AM

    I think you can put a flash player here. The new version could play mp4 files directly (although it may require a fix of moov atoms to play it progressively.)

  5. EmptyDecember 14, 2007 @ 02:28 PM

    itsnotvalid: I’m working on flash for the screencasts as well. It’s just been a time issue to get everything in place. Hopefully in the next week or two.