示例#1
0
from silk.views.root import RootView
from silk.views.sql import SQLView
from silk.views.sql_detail import SQLDetailView

urlpatterns = patterns(
    'silk.views', url(r'^/$', RootView.as_view(), name='requests'),
    url(r'^/request/(?P<request_id>[0-9]*)/$',
        RequestView.as_view(),
        name='request_detail'),
    url(r'^/request/(?P<request_id>[0-9]*)/sql/$',
        SQLView.as_view(),
        name='request_sql'),
    url(r'^/request/(?P<request_id>[0-9]*)/sql/(?P<sql_id>[0-9]*)/$',
        SQLDetailView.as_view(),
        name='request_sql_detail'),
    url(r'^/request/(?P<request_id>[0-9]*)/raw/$', Raw.as_view(), name='raw'),
    url(r'^/request/(?P<request_id>[0-9]*)/profiling/$',
        ProfilingView.as_view(),
        name='request_profiling'),
    url(r'^/request/(?P<request_id>[0-9]*)/profile/(?P<profile_id>[0-9]*)/$',
        ProfilingDetailView.as_view(),
        name='request_profile_detail'),
    url(r'^/request/(?P<request_id>[0-9]*)/profile/(?P<profile_id>[0-9]*)/sql/$',
        SQLView.as_view(),
        name='request_and_profile_sql'),
    url(r'^/request/(?P<request_id>[0-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'),
示例#2
0
from django.conf.urls import patterns, url

from silk.views.profile_detail import ProfilingDetailView
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, ClearView


urlpatterns = patterns('silk.views',
                       url(r'^$', SummaryView.as_view(), name='summary'),
                       url(r'^clear/$', ClearView.as_view(), name='clear'),
                       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\-]+)/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'))


示例#3
0
文件: urls.py 项目: rosscdh/silk
from django.conf.urls import patterns, url
from silk.views.documentation import DocumentationView

from silk.views.profile_detail import ProfilingDetailView
from silk.views.profiling import ProfilingView
from silk.views.raw import Raw
from silk.views.request_detail import RequestView
from silk.views.root import RootView
from silk.views.sql import SQLView
from silk.views.sql_detail import SQLDetailView


urlpatterns = patterns('silk.views',
                       url(r'^/$', RootView.as_view(), name='requests'),
                       url(r'^/request/(?P<request_id>[0-9]*)/$', RequestView.as_view(), name='request_detail'),
                       url(r'^/request/(?P<request_id>[0-9]*)/sql/$', SQLView.as_view(), name='request_sql'),
                       url(r'^/request/(?P<request_id>[0-9]*)/sql/(?P<sql_id>[0-9]*)/$', SQLDetailView.as_view(), name='request_sql_detail'),
                       url(r'^/request/(?P<request_id>[0-9]*)/raw/$', Raw.as_view(), name='raw'),
                       url(r'^/request/(?P<request_id>[0-9]*)/profiling/$', ProfilingView.as_view(), name='request_profiling'),
                       url(r'^/request/(?P<request_id>[0-9]*)/profile/(?P<profile_id>[0-9]*)/$', ProfilingDetailView.as_view(), name='request_profile_detail'),
                       url(r'^/request/(?P<request_id>[0-9]*)/profile/(?P<profile_id>[0-9]*)/sql/$', SQLView.as_view(), name='request_and_profile_sql'),
                       url(r'^/request/(?P<request_id>[0-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'^/documentation/$', DocumentationView.as_view(), name='documentation'))

示例#4
0
     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(),
示例#5
0
文件: urls.py 项目: sportstech/silk
from django.conf.urls import url

from silk.views.profile_detail import ProfilingDetailView
from silk.views.profile_download import ProfileDownloadView
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

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\-]+)/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')
]
示例#6
0
文件: urls.py 项目: django-silk/silk
     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(),