old_contents: from django.conf.urls import patterns, url
  
  from adzone.views import ad_view
  
  urlpatterns = patterns('',
      url(r'^view/(?P<id>[\d]+)/$', ad_view, name='adzone_ad_view'),
  )
  
new_contents: from django.conf.urls import url
  
  from adzone.views import ad_view
  
  urlpatterns = [
      url(r'^view/(?P<id>[\d]+)/$', ad_view, name='adzone_ad_view'),
  ]
  
subject: Remove 'patterns' from urls.py