old_contents: from django.conf.urls import patterns, url
  
  from django.conf import settings
  try:
      # Django < 1.9
      from django.utils.importlib import import_module
  except:
      # Django >= 1.9
      from importlib import import_module
  
  
  # Try and import an ``events`` module in each installed app,
  # to ensure all event handlers are connected.
  for app in settings.INSTALLED_APPS:
      try:
          import_module("%s.events" % app)
      except ImportError:
          pass
  
  
  urlpatterns = patterns("django_socketio.views",
      url("^socket\.io", "socketio", name="socketio"),
  )
  
new_contents: from django.conf.urls import url
  from . import views
  from django.conf import settings
  try:
      # Django < 1.9
      from django.utils.importlib import import_module
  except:
      # Django >= 1.9
      from importlib import import_module
  
  
  # Try and import an ``events`` module in each installed app,
  # to ensure all event handlers are connected.
  for app in settings.INSTALLED_APPS:
      try:
          import_module("%s.events" % app)
      except ImportError:
          pass
  
  
  urlpatterns = [
      url("^socket\.io", views.socketio, name="socketio"),
  ]
  
subject: Update urls.py