Use Django 1.5 urls in templates

This is compatible with Django 1.4, 1.5 and 1.6.