old_contents: """
  raven.contrib.django.urls
  ~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
  :license: BSD, see LICENSE for more details.
  """
  from __future__ import absolute_import
  
  from django.conf.urls.defaults import patterns, url
  
  urlpatterns = patterns('',
      url(r'^api/(?:(?P<project_id>[\w_-]+)/)?store/$', 'raven.contrib.django.views.report', name='raven-report'),
      url(r'^report/', 'raven.contrib.django.views.report'),
  )
  
new_contents: """
  raven.contrib.django.urls
  ~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
  :license: BSD, see LICENSE for more details.
  """
  from __future__ import absolute_import
  
  try: 
      from django.conf.urls import patterns, url
  except ImportError: 
      # for Django version less then 1.4
      from django.conf.urls.defaults import patterns, url
  
  urlpatterns = patterns('',
      url(r'^api/(?:(?P<project_id>[\w_-]+)/)?store/$', 'raven.contrib.django.views.report', name='raven-report'),
      url(r'^report/', 'raven.contrib.django.views.report'),
  )
  
subject: Update raven/contrib/django/urls.py