Weblog

Week in review: April 8

Django's version 0.96 just landed, but we're already hard at work on the next version. Here's a rundown of some of the bigger improvements we've made to the Django development version in the past week:

  • As of changeset 4901, we've added the ability to name URL patterns. This is a great help with reverse URL matching. See the new docs.
  • Have you seen django.contrib.localflavor yet? An example of our "batteries included" philosophy, it's a collection of functions and data structures that are useful for locale-specific applications. The biggest part of localflavor at this point are django.newforms-style Field objects that validate an assortment of country-specific data. For example, we've got validators for U.S. Social Security numbers, phone numbers, states and ZIP codes; post codes in Australia, Brazil, Finland, France, Germany, Italy, Japan, Norway, and the U.K; and government identity numbers for a number of countries. Plus, we've got more coming. If you can think of (and, better yet, implement) some locale-specific logic that would be useful to a number of people and localflavor doesn't yet handle, please contribute!
  • Work progresses on the newforms-admin branch, which aims to integrate Django's admin site with the newforms library. Along the way, we're taking the opportunity to add extra customization hooks to the admin site. Much of the implementation is done already, and it's now possible, using the branch, to run multiple instances of the Django admin site, with different configuration, in the same Django project. This is exciting stuff; see the status section of the wiki page for some examples of what's changed.
  • We created a unicode branch this week. Malcolm Tredinnick will be taking the lead on making all of Django's internals fully Unicode-aware, once and for all. See the branch wiki page for more info.

Posted by Adrian Holovaty on April 8, 2007

Comments

Ville Säävuori April 9, 2007 at 1:54 a.m.

Nice to see a Week in review post again after a long pause!

The named URL patterns are a great solution for DRY configuration of URLs. I've been testing them out for a few days now and I'm already in love with them :)

I also hope that the unicode branch will be getting attention from all of the developers (like me) who are fighting with unicode-related issues with Django. I'm happy to help with these, at least by testing the new branch.

Sam Webster April 9, 2007 at 1:14 p.m.

Wow! newforms-admin admin options are incredible! So flexible! I can't wait!

S. April 18, 2007 at 10:57 a.m.

Named URLs are an *awesome* idea! I'd been working on something similar, and I'm glad to see the concept make it into Django!

Three questions though:
1) Is the API as currently documented final? I... am sorry to say, I don't find it terribly elegant, as compared to the rest of Django. Which is darn subjective, I realize; I guess what I'd like to know is whether I should start getting used to it, or if constructive suggestions would help.

2) Do named URLs work with include()?

3) Will hardcoded default URLs such as the '/accounts/login/' in contrib.auth be replaced with calls to named URLs instead? Something like url_for("auth-login"), I mean.

Thanks. :) Go Django!

rjwittams June 16, 2007 at 9:46 a.m.

Very glad to see that Django is still making great progress. I've not been webbing for a while but next time I do I hope I'll come back to these stomping grounds ;-) Very much like the look of the newforms, and its always good to see the admin get more useful.

Comments are closed

To prevent spam, comments are no longer allowed after sixty days.