Forwards compatibility to Django 1.6

Django 1.6 removed `django.conf.urls.defaults`. Try using the new way before falling back to the old (pre-1.4) way.