old_contents: from django.conf.urls import url
  
  urlpatterns = ["",
      url(r"^log/$", "jserr.views.log", name="log_js_error"),
  ]
  
new_contents: from django.conf.urls import url
  import jserr.views
  
  urlpatterns = [
      url(r"^log/$", jserr.views.log, name="log_js_error"),
  ]
  
subject: Update urls.py