old_contents: from django.conf.urls import url
  from . import views
  
  app_name = 'spaces'
  urlpatterns = [
      url(r'^s/account/login$', views.LoginView.as_view(), name='login'),
      # url(r'^user/(?P<username>)/(?P<uri>.*)$', views.UserDocView.as_view(), name='user_doc'),
  
      url(
          r'^(?P<path>.*/)?-edit$',
          views.DocUpdate.as_view(), name='document_edit'),
      url(
          r'^(?P<path>.*/)?-add$',
          views.DocCreate.as_view(), name='document_create'),
      url(
          r'^(?P<path>.*)$',
          views.DocView.as_view(), name='document'),
  ]
  
new_contents: from django.conf.urls import url
  from . import views
  
  app_name = 'spaces'
  urlpatterns = [
      url(r'^s/account/login$', views.LoginView.as_view(), name='login'),
      # url(r'^user/(?P<username>)/(?P<uri>.*)$', views.UserDocView.as_view(), name='user_doc'),
  
      url(
          r'^(?P<path>.*/)?_edit$',
          views.DocUpdate.as_view(), name='document_edit'),
      url(
          r'^(?P<path>.*/)?_add$',
          views.DocCreate.as_view(), name='document_create'),
      url(
          r'^(?P<path>.*)$',
          views.DocView.as_view(), name='document'),
  ]
  
subject: Change edit/add urls