Fix deprecation warnings

Django 1.4 moved utility functions from django.conf.urls.defaults to django.conf.urls, and deprecated the old module name.