old_contents: from django.conf.defaults import patterns
  
  
  urlpatterns = patterns('')
  
new_contents: try:
      from django.conf.defaults import patterns
  except ImportError:
      patterns = list
  
  
  urlpatterns = patterns('')
  
subject: Fix compatibility with Django >= 1.10