forked from projectbismark/networkdashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
57 lines (46 loc) · 2.92 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
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^dashboard/', include('dashboard.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
#feedback.html?device=231425325
# site URLs
(r'^$', 'networkdashboard.summary.views.index'),
(r'^devices/', 'networkdashboard.summary.views.showdevices'),
(r'^activedevices/', 'networkdashboard.summary.views.showactivedevices'),
(r'^device', 'networkdashboard.summary.views.devicesummary'),
(r'^getCoordinates', 'networkdashboard.summary.views.getCoordinates'),
(r'^getThroughput', 'networkdashboard.summary.views.throughputGraph'),
(r'^displayDevice/(?P<devicehash>\w+)', 'networkdashboard.summary.views.sharedDeviceSummary'),
(r'^editDevicePage/(?P<devicehash>\w+)', 'networkdashboard.summary.views.editDevicePage'),
(r'^editDevice/(?P<device>\w+)', 'networkdashboard.summary.views.editDevice'),
(r'^invalidEdit/(?P<device>\w+)', 'networkdashboard.summary.views.invalidEdit'),
(r'^getISP/(?P<device>\w+)', 'networkdashboard.summary.views.getISP'),
(r'^getPlan/(?P<device>\w+)', 'networkdashboard.summary.views.getPlan'),
(r'^getUl/(?P<device>\w+)', 'networkdashboard.summary.views.getUl'),
(r'^getDl/(?P<device>\w+)', 'networkdashboard.summary.views.getDl'),
(r'^getLastUpdate/(?P<device>\w+)', 'networkdashboard.summary.views.getLastUpdate'),
(r'^getLastUpdateYMD/(?P<device>\w+)', 'networkdashboard.summary.views.getLastUpdateYMD'),
(r'^getFirstUpdate/(?P<device>\w+)', 'networkdashboard.summary.views.getFirstUpdate'),
(r'^getLocation/(?P<device>\w+)', 'networkdashboard.summary.views.getLocation'),
(r'^data/(?P<device>\w+)', 'networkdashboard.summary.views.line_data2'),
(r'^data_chart/', 'networkdashboard.summary.views.cvs_linegraph'),
(r'^line_rtt', 'networkdashboard.summary.views.linegraph_rtt'),
(r'^line_bitrate/', 'networkdashboard.summary.views.linegraph_bitrate'),
(r'^line_lmrtt/', 'networkdashboard.summary.views.linegraph_lmrtt'),
(r'^line_passive/', 'networkdashboard.summary.views.linegraph_bytes_hour'),
(r'^line_passive_port/', 'networkdashboard.summary.views.linegraph_bytes_port_hour'),
(r'^data/', 'networkdashboard.summary.views.pie_chart'),
(r'^newuser.html', 'networkdashboard.summary.views.newuser'),
(r'^feedback.html', 'networkdashboard.summary.views.feedback'),
(r'^send_feedback/', 'networkdashboard.summary.views.send_feedback'),
(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT})
)