Support for django 1.5 and higher

Django 1.5 and higher don't have django.conf.urls.defaults which was deprecated.