Fixed compatibility with Django 1.5 -- {% url ... %}

Probably won't work with things older than Django 1.2, but...
Please could you change this to support earlier version of Django.

    try:
        from django.conf.urls.defaults import patterns, url
    except ImportError:
        from django.conf.urls import patterns, url

Once that done this PR is good to go, thanks for the contribution.