Beispiel #1
0
    url(r'^$', 'openduty.event_log.list'),
    url(r'^dashboard/$', 'openduty.event_log.list'),
    url(r'^dashboard/service/(.*)$', 'openduty.event_log.get'),

    #INCIDENTS
    url(r'^incidents/details/(.*)$', 'openduty.incidents.details'),
    url(r'^incidents/update_type/$', 'openduty.incidents.update_type'),
    url(r'^incidents/forward_incident', 'openduty.incidents.forward_incident'),
    url(r'^incidents/silence/(.*)$', 'openduty.incidents.silence'),
    url(r'^incidents/unsilence/(.*)$', 'openduty.incidents.unsilence'),
    url(r'^incidents/on-call/$', ServicesByMe.as_view(), name="incidents_on_call" ),
    url(r'^incidents/add_note/(.*)$', 'openduty.incidents.add_note'),
    url(r'^incidents/delete_note/(.*)$', 'openduty.incidents.delete_note'),
    url(r'^incidents/list/$',
        FilteredSingleTableView.as_view(template_name='incidents/list2.html',
                                        table_class=IncidentTable, model=Incident,
                                        table_pagination={"per_page": 10},
                                        ),
        name='incident_list'),
   url(r'^twilio/(\d+)/(\d+)$', 'openduty.call_handler.read_notification'),
   url(r'^twilio/handle/(\d+)/(\d+)$', 'openduty.call_handler.handle_key'),


)

urlpatterns += patterns('',
        (r'^static/media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes':True}),
    )

urlpatterns += patterns('',
             (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT, 'show_indexes':True}),
        )
Beispiel #2
0
    url(r'^dashboard/$', 'openduty.event_log.list'),
    url(r'^dashboard/service/(.*)$', 'openduty.event_log.get'),

    #INCIDENTS
    url(r'^incidents/details/(.*)$', 'openduty.incidents.details'),
    url(r'^incidents/update_type/$', 'openduty.incidents.update_type'),
    url(r'^incidents/forward_incident', 'openduty.incidents.forward_incident'),
    url(r'^incidents/silence/(.*)$', 'openduty.incidents.silence'),
    url(r'^incidents/unsilence/(.*)$', 'openduty.incidents.unsilence'),
    url(r'^incidents/on-call/$',
        ServicesByMe.as_view(),
        name="incidents_on_call"),
    url(r'^incidents/list/$',
        FilteredSingleTableView.as_view(
            template_name='incidents/list2.html',
            table_class=IncidentTable,
            model=Incident,
            table_pagination={"per_page": 10},
        ),
        name='incident_list'),
    url(r'^twilio/(\d+)/(\d+)$', 'openduty.call_handler.read_notification'),
    url(r'^twilio/handle/(\d+)/(\d+)$', 'openduty.call_handler.handle_key'),
)

urlpatterns += patterns(
    '',
    (r'^static/media/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT,
        'show_indexes': True
    }),
)
Beispiel #3
0
from django.conf.urls import patterns, url
from django_tables2_simplefilter import FilteredSingleTableView
from Web.views import *

urlpatterns = patterns('Web.views',
    url(r'^$', 'index'),
	url(r'^connections/$', FilteredSingleTableView.as_view(template_name='connections/index.html',
                                        table_class=ConnectionsTable,
                                        model=Connection,
                                        table_pagination={"per_page": 15}),
                                        name='Connections'),
    url(r'^connections/(?P<connection_id>\d+)/', 'cdetail'),
    url(r'^downloads/', FilteredSingleTableView.as_view(template_name='downloads/index.html',
                                        table_class=DownloadsTable,
                                        model=Download,
                                        table_pagination={"per_page": 15}),
                                        name='Downloads'),
    url(r'^graphs/services/$', 'services'),
    url(r'^graphs/servicesdata/$', 'servicesData'),
    url(r'^graphs/ports/$', 'ports'),
    url(r'^graphs/portsdata/$', 'portsData'),
    url(r'^graphs/urls/$', 'urls'),
    url(r'^graphs/urlsdata/$', 'urlsData'),
    url(r'^graphs/malware/$', 'malware'),
    url(r'^graphs/malwaredata/$', 'malwareData'),
    url(r'^graphs/ips/$', 'ips'),
    url(r'^graphs/ipsdata/$', 'ipsData'),
	url(r'^graphs/connections/$', 'connections'),
    url(r'^graphs/connectionsdata/$', 'connectionsData'),
    url(r'^graphs/timeline/$', 'timeline'),
    url(r'^graphs/conncountries/$', 'connCountries'),