Fix deprecated django.conf.urls.defaults and django.utils.hashcompat