Fix compatibility with Django 1.6

Since django.conf.urls.defaults is obsolete in django 1.6, let's use the new module and leave the old import for django < 1.6.