1. Skip to navigation
  2. Skip to content

Entries tagged “admin”

This Week in Django 30 - 2008-07-20

written by Michael Trier, on Jul 21, 2008 11:54:00 PM.

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

This week we discuss the NewForms-Admin merge into Trunk, DjangoCon, 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

Downloads

AAC Enhanced Podcast (41.8 MB, 49:31, AAC)

MP3 Edition (34.1 MB, 49:31, MP3)

OGG Edition (27.9 MB, 49:31, 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 (0:47)

Tracking Trunk (15:04)

Community Catchup (26:16)

  • Kevin Fricovsky – joins the This Week in Django team as Community Evangelist. Kevin will be working to produce the show, contacting guests, gathering news items, coming up with ideas. Kevin has been doing this work regularly anyway so it’s great of him to team up with us to help out the program:
  • PyOhio – Reminder that this free one day conference is in Columbus, OH on July 26, 2008.
  • – via Kevin Fricovsky using the new Twitter Search capability to track all tweets about django.
  • OSCON Python BoF – Tuesday, July 22nd 7pm – 10pm from Jax Bar and Restaurant. Via Jason Kirtland’s excellent blog discorporate.

Tip of the Week (38:32)

This tip comes to us via Ben Jao Ming in his post Django auto-translation of field values.

If you need to translate content in a field then gettext is not going to help you out. Since you can create your own custom fields it’s easy to wrap a CharField with the translation behavior:


from django.db import models
from django.utils.translation import gettext_lazy as _

class AutoTranslateField(models.CharField):
    __metaclass__ = models.SubfieldBase
    def to_python(self, value):
        return str(_(value))

Just add whatever translations you know of to the locale file and run compilemessages.

Thank You! (42:45)

NewForms-Admin Migration Screencast!

written by Michael Trier, on Jul 21, 2008 8:40:00 PM.

Brian Rosner just released a new screencast and blog post, newforms-admin Migration and Screencast, that walks you through how to get started with migrating to NewForms-Admin from your existing trunk based code. The screencast and accompanying blog post are very well done. It’s great to get this kind of helpful information, especially from someone that knows so much about the internals of the code.

I highly encourage everyone to check it out, especially if you’re on the fence on whether or not the conversion is worth it. Brian shows how easy it is to get started.

Django Screencasts 7 - NewForms Admin I

written by Michael Trier, on Feb 9, 2008 9:29:00 AM.

In this screencast I cover converting an existing application to the NewForms-Admin Branch of Django. We will cover hooking the NewForms-Admin into our urls.py module, extracting out the inner Admin class information into a NewForms-Admin class, handling the prepopulate_from, and organizing our admin class information into a separate module.

Downloads

Now available in an Ogg/Theora format!

MP4 Edition (33.0 MB, 21:09, H.264, MP4)

IPod Edition (16.6 MB, 21:09, H.264, MP4)

OGG Edition (34.9 MB, 21:09, Theora, OGG)

Flash Edition – All screencasts are available at ShowMeDo, although not immediately upon publish.

Source Code (44 KB)

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

Feeds Available

iTunes Feeds are available, So please choose the iTunes feed if you want automatic downloads in iTunes. Please show me some iTunes love.

iTunes Feeds

Django Screencasts – MP4 Edition

Django Screencasts – iPod Edition – Still waiting for it to show up

Regular RSS Feeds

Django Screencasts – MP4 Edition

Django Screencasts – iPod Edition

Show Notes

NewForms-Admin Branch Wiki Page – The NewForms-Admin documentation on the Django Wiki site.

Django Installation Documentation – Covers how to install Django. You will need to go through similar steps when installing the NewForms-Admin branch.

Using Git with Django Screencast – Excellent screencast that gives a nice introduction to working with Git and Django together.

Source code is available in the Source Code download link above. Apparently a lot of people miss that. The source for the application can be downloaded and used under the MIT License.

Registering Custom Commands with Manage.py

written by Michael Trier, on Aug 18, 2007 9:15:00 AM.

I think someone is reading my mail, or should I say mind. For the past several days I had been drafting a preliminary patch and rationale for proposing that the manage.py system be opened up to allow extensibility of custom commands. My initial motivation for this functionality was due to my Newforms Generator. I wanted to be able to inject this behavior into manage.py without having to submit a patch and get buy-in. Well thankfully it looks like someone else had the same exact idea. With Changeset 5925 we get this functionality.

Coming from Ruby / Rails world I have really missed Rake and the simple extensibility of that tool to automate common tasks. Now with extensibility in manage.py I can do a lot of the same things I was accustomed to previously.

The docs online are not updated yet to reflect this change but the Changeset patch has all the information you need to get started.

Very cool stuff.

UPDATE

As noted in the comments, it looks like this one was rolled backed for a bit. Something about it not working. :) I’m sure the required fixes will be put in place shortly.