Import patterns from django.conf.urls, not django.conf.urls.defaults

django.conf.urls.defaults is removed as of Django 1.6