Avoid using deprecated django.conf.urls.defaults

Import from django.conf.urls on Django >= 1.4 and fall back to
django.conf.urls.defaults for older versions