Exemplo n.º 1
0
from django.conf.urls import patterns
from dash.views import (IndexView, DfView, HostnameView, ExternalipView,
                   IssueView, MemoryView, WhoView, NumcpuView,
                   PsView, UsersView, WhereisView, BootView,
                   LoadavgView, BandwidthView, DnsmasqView, PingView,
                   TimeView)


urlpatterns = patterns('',
                       (r'^$', IndexView.as_view()),
                       (r'^sh/df/$', DfView.as_view()),
                       (r'^sh/hostname/$', HostnameView.as_view()),
                       (r'^sh/ip/$', ExternalipView.as_view()),
                       (r'^sh/issue/$', IssueView.as_view()),
                       (r'^sh/mem/$', MemoryView.as_view()),
                       (r'^sh/online/$', WhoView.as_view()),
                       (r'^sh/numberofcores/$', NumcpuView.as_view()),
                       (r'^sh/loadavg/$', LoadavgView.as_view()),
                       (r'^sh/ps/$', PsView.as_view()),
                       (r'^sh/users/$', UsersView.as_view()),
                       (r'^sh/whereis/$', WhereisView.as_view()),
                       (r'^sh/boot/$', BootView.as_view()),
                       (r'^sh/bandwidth/$', BandwidthView.as_view()),
                       (r'^sh/dnsmasq-leases/$', DnsmasqView.as_view()),
                       (r'^sh/ping/$', PingView.as_view()),
                       (r'^sh/time/$', TimeView.as_view()),
                       )
Exemplo n.º 2
0
from django.conf.urls import patterns
from dash.views import (IndexView, DfView, HostnameView, ExternalipView,
                        IssueView, MemoryView, WhoView, NumcpuView, PsView,
                        UsersView, WhereisView, BootView, LoadavgView,
                        BandwidthView, DnsmasqView, PingView, TimeView)

urlpatterns = patterns(
    '',
    (r'^$', IndexView.as_view()),
    (r'^sh/df/$', DfView.as_view()),
    (r'^sh/hostname/$', HostnameView.as_view()),
    (r'^sh/ip/$', ExternalipView.as_view()),
    (r'^sh/issue/$', IssueView.as_view()),
    (r'^sh/mem/$', MemoryView.as_view()),
    (r'^sh/online/$', WhoView.as_view()),
    (r'^sh/numberofcores/$', NumcpuView.as_view()),
    (r'^sh/loadavg/$', LoadavgView.as_view()),
    (r'^sh/ps/$', PsView.as_view()),
    (r'^sh/users/$', UsersView.as_view()),
    (r'^sh/whereis/$', WhereisView.as_view()),
    (r'^sh/boot/$', BootView.as_view()),
    (r'^sh/bandwidth/$', BandwidthView.as_view()),
    (r'^sh/dnsmasq-leases/$', DnsmasqView.as_view()),
    (r'^sh/ping/$', PingView.as_view()),
    (r'^sh/time/$', TimeView.as_view()),
)
Exemplo n.º 3
0
Arquivo: urls.py Projeto: rootart/dash
from people.api import TeamResource
from dash.api import DashResource
from repository.api import CommitResource

v1_api = Api(api_name='v1')
v1_api.register(TeamResource())
v1_api.register(DashResource())
v1_api.register(CommitResource())

from dash.views import IndexView

admin.autodiscover()

urlpatterns = patterns('',
    url('^$', IndexView.as_view(), name='index'),
    url('', include('social.apps.django_app.urls', namespace='social')),
    # url('^$', 'people.views.team_list', name='team-list'),
    (r'^api/', include(v1_api.urls)),
    url('^team/$', 'people.views.team_list', name='team-list'),
    url('^team/(?P<order_by>commits|country)/$', 'people.views.team_list', name='team-list'),
    url('^team/(?P<team_id>\d+)/$', 'people.views.team_detail', name='team-detail'),

    url('^member/$', 'people.views.member_list', name='member-list'),
    url('^member/(?P<order_by>commits|country)/$', 'people.views.member_list', name='member-list'),
    url('^member/(?P<member_id>\d+)/$', 'people.views.member_detail', name='member-detail'),

    url('^commits/$', 'people.views.commit_list', name='commit-list'),
    url('^commits/(?P<commit_id>\d+)/$', 'people.views.commit_detail', name='commit-detail'),

    url('^country/$', 'people.views.country_list', name='country-list'),