Fix for Django 1.6 regarding `django.conf.urls.defaults`

On Django 1.6 `from django.conf.urls.defaults import ...` should be `from django.conf.urls import ...`. This small patch tries to import using the new path and reverts to the old path on error, so it should be compatible with older versions.