Thursday, August 13, 2009

Django 1.1 What´s New?

It was exciting to see that Django 1.1 has been released. It seems like one of the last bugs that was holding up the project was more complex than it seems. The bug had to do with properly reversing urls, which led to the creation of url namespaces, which seems like an excellent solution to me.

From the Django Site:

Django 1.1 improves named URL patterns with the introduction of URL "namespaces."

In short, this feature allows the same group of URLs, from the same application, to be included in a Django URLConf multiple times, with varying (and potentially nested) named prefixes which will be used when performing reverse resolution. In other words, reusable applications like Django's admin interface may be registered multiple times without URL conflicts.

This is fundamental if you start building large sites and need to customize various admin panels, or reuse applications accross a large site.

You can view the Django 1.1 release notes here:
http://docs.djangoproject.com/en/dev/releases/1.1/

Other big enhancements seem to be in stretching the capabilities of the ORM and the way that models can be used with forms via proxy models.

The GeoDjango project has also been integrated into the django core for applications that need to use spatial data.

Another change on the Django site is that comments have been removed entirely. It does seem to take away a bit of the community feel that the project had in the past, and it would be nice to know what prompted the change.

Elsewhere on the web:

WebMonkey - Django 1.1 Arrives Just in Time for DjangoCon 2009

Excess.org - Django 1.1 Talk Text, Django 1.1 Talk Video
(prerelease overview, but interesting for those new to Django)

MoreThanSeven.com - What´s new in Django 1.1

DjangoRocks.com - Django 1.1 now live




0 comments: