1 from django
.conf
.urls
import *
3 from mygpo
.admin
.views
import Overview
, MergeSelect
, MergeVerify
, \
4 MergeProcess
, MergeStatus
, ClientStatsView
, ClientStatsJsonView
, \
5 UserAgentStatsView
, StatsView
, StatsJsonView
, HostInfo
, \
6 FiletypeStatsView
, ActivateUserView
, UnifyDuplicateSlugsSelect
, \
7 UnifyDuplicateSlugs
, UnifySlugsStatus
9 urlpatterns
= patterns('mygpo.admin.views',
10 url(r
'^$', Overview
.as_view(), name
='admin-overview'),
11 url(r
'^hostinfo$', HostInfo
.as_view(), name
='admin-hostinfo'),
12 url(r
'^merge/$', MergeSelect
.as_view(), name
='admin-merge'),
13 url(r
'^merge/verify$', MergeVerify
.as_view(), name
='admin-merge-verify'),
14 url(r
'^merge/process$', MergeProcess
.as_view(), name
='admin-merge-process'),
16 url(r
'^merge/status/(?P<task_id>[^/]+)$',
17 MergeStatus
.as_view(),
18 name
='admin-merge-status'),
20 url(r
'^clients$', ClientStatsView
.as_view(), name
='clients'),
21 url(r
'^clients\.json$', ClientStatsJsonView
.as_view(), name
='clients-json'),
22 url(r
'^clients/user_agents$', UserAgentStatsView
.as_view(), name
='useragents'),
24 url(r
'^stats$', StatsView
.as_view(), name
='stats'),
25 url(r
'^stats\.json$', StatsJsonView
.as_view(), name
='stats-json'),
28 FiletypeStatsView
.as_view(),
29 name
='admin-filetypes'),
31 url(r
'^activate-user/$',
32 ActivateUserView
.as_view(),
33 name
='admin-activate-user'),
35 url(r
'^unify-slugs/select$',
36 UnifyDuplicateSlugsSelect
.as_view(),
37 name
='admin-unify-slugs-select'),
39 url(r
'^unify-slugs/$',
40 UnifyDuplicateSlugs
.as_view(),
41 name
='admin-unify-slugs'),
43 url(r
'^unify-slugs/status/(?P<task_id>[^/]+)$',
44 UnifySlugsStatus
.as_view(),
45 name
='admin-unify-slugs-status'),