forked from jazzband/django-silk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
90 lines (88 loc) · 2.78 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
from django.conf.urls import url
from silk.views.profile_detail import ProfilingDetailView
from silk.views.profile_download import ProfileDownloadView
from silk.views.profile_dot import ProfileDotView
from silk.views.profiling import ProfilingView
from silk.views.raw import Raw
from silk.views.request_detail import RequestView
from silk.views.requests import RequestsView
from silk.views.sql import SQLView
from silk.views.sql_detail import SQLDetailView
from silk.views.summary import SummaryView
from silk.views.cprofile import CProfileView
app_name = 'silk'
urlpatterns = [
url(r'^$', SummaryView.as_view(), name='summary'),
url(r'^requests/$', RequestsView.as_view(), name='requests'),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/$',
RequestView.as_view(),
name='request_detail'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/sql/$',
SQLView.as_view(),
name='request_sql'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/sql/(?P<sql_id>[0-9]+)/$',
SQLDetailView.as_view(),
name='request_sql_detail'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/raw/$',
Raw.as_view(),
name='raw'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/pyprofile/$',
ProfileDownloadView.as_view(),
name='request_profile_download'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/json/$',
ProfileDotView.as_view(),
name='request_profile_dot'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/profiling/$',
ProfilingView.as_view(),
name='request_profiling'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/profile/(?P<profile_id>[0-9]+)/$',
ProfilingDetailView.as_view(),
name='request_profile_detail'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/profile/(?P<profile_id>[0-9]+)/sql/$',
SQLView.as_view(),
name='request_and_profile_sql'
),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/profile/(?P<profile_id>[0-9]+)/sql/(?P<sql_id>[0-9]+)/$',
SQLDetailView.as_view(),
name='request_and_profile_sql_detail'
),
url(
r'^profile/(?P<profile_id>[0-9]+)/$',
ProfilingDetailView.as_view(),
name='profile_detail'
),
url(
r'^profile/(?P<profile_id>[0-9]+)/sql/$',
SQLView.as_view(),
name='profile_sql'
),
url(
r'^profile/(?P<profile_id>[0-9]+)/sql/(?P<sql_id>[0-9]+)/$',
SQLDetailView.as_view(),
name='profile_sql_detail'
),
url(r'^profiling/$', ProfilingView.as_view(), name='profiling'),
url(
r'^request/(?P<request_id>[a-zA-Z0-9\-]+)/cprofile/$',
CProfileView.as_view(),
name='cprofile'
),
]