コード例 #1
0
ファイル: urls.py プロジェクト: dashersw/arguman.org
 url(r'^updated$', UpdatedArgumentsView.as_view(),
     name='contentions_updated'),
 url(r'^about$',
     AboutView.as_view(),
     name='about'),
 url(r'^new-argument$',
     ArgumentCreationView.as_view(),
     name='new_argument'),
 url(r'^(?P<slug>[\w-]+)/edit$',
      ArgumentUpdateView.as_view(),
      name='contention_edit'),
 url(r'^(?P<slug>[\w-]+)\.json$',
      ContentionJsonView.as_view(),
      name='contention_detail_json'),
 url(r'^(?P<slug>[\w-]+)$',
      ContentionDetailView.as_view(),
      name='contention_detail'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/delete',
      PremiseDeleteView.as_view(),
      name='delete_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/new',
      PremiseCreationView.as_view(),
      name='insert_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)',
      PremiseEditView.as_view(),
      name='edit_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/new',
      PremiseCreationView.as_view(),
      name='new_premise'),
  url(r'^(?P<slug>[\w-]+)/publish',
      ArgumentPublishView.as_view(),
コード例 #2
0
ファイル: urls.py プロジェクト: yetkinozturk/arguman.org
     AboutView.as_view(),
     name='about'),
 url(r'^tos$',
     TosView.as_view(),
     name='tos'),
 url(r'^new-argument$',
     ArgumentCreationView.as_view(),
     name='new_argument'),
 url(r'^(?P<slug>[\w-]+)/edit$',
      ArgumentUpdateView.as_view(),
      name='contention_edit'),
 url(r'^(?P<slug>[\w-]+)\.json$',
      ContentionJsonView.as_view(),
      name='contention_detail_json'),
 url(r'^(?P<slug>[\w-]+)$',
      ContentionDetailView.as_view(),
      name='contention_detail'),
 url(r'^(?P<slug>[\w-]+)/(?P<premise_id>[\d+]+)$',
      ContentionDetailView.as_view(),
      name='premise_detail'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/unsupport',
      PremiseUnsupportView.as_view(),
      name='unsupport_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/support',
      PremiseSupportView.as_view(),
      name='support_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/delete',
      PremiseDeleteView.as_view(),
      name='delete_premise'),
 url(r'^(?P<slug>[\w-]+)/premises/(?P<pk>[0-9]+)/report',
      ReportView.as_view(),