old_contents: from django.conf.urls import url
  
  
  urlpatterns = [
      # Capture urls that are at the root (^$) or end in a slash (^.+/$)
      url(r'^(?P<url>(|.+/))$', 'nav_tree.views.node_router'),
  ]
  
new_contents: from django.conf.urls import url
  
  
  urlpatterns = [
      # Capture urls that are at the root (^$) or end in a slash (^.+/$)
      url(r'^(?P<url>|.+/)$', 'nav_tree.views.node_router'),
  ]
  
subject: Simplify nav_tree url regex