old_contents: try:
      from django.conf.urls import patterns, url
  except ImportError:
      from django.conf.urls.defaults import patterns, url
  
  urlpatterns = patterns(
      'robots.views',
      url(r'^$', 'rules_list', name='robots_rule_list'),
  )
  
new_contents: from django.conf.urls import url
  
  from robots.views import rules_list
  
  
  urlpatterns = [
      url(r'^$', rules_list, name='robots_rule_list'),
  ]
  
subject: Fix warnings about URLconf in Django 1.9