Use django 1.5 compatible url template tag.

This fixes the template rendering in django 1.5 by using the new `url` tag.
This change is compatible with django 1.3+, but breaks compatibility for
versions of django before that.