-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathurls.py
34 lines (27 loc) · 1.34 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
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^pxemngr/', include('pxemngr.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')),
(r'^localboot/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.localboot'),
(r'^localboot/$', 'pxe.views.localboot1'),
(r'^profile/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.profile'),
(r'^profile/$', 'pxe.views.profile1'),
(r'^upload/(?P<logid>[0-9]+)/$', 'tester.views.upload_file'),
(r'^nexttest/$', 'tester.views.next_test1'),
(r'^nexttest/(?P<mac>[a-fA-F0-9:-]+)/$', 'tester.views.next_test'),
(r'^$', 'tester.views.index'),
(r'^tests/(?P<verid>[0-9]+)/$', 'tester.views.logs'),
(r'^test/(?P<logid>[0-9]+)/$', 'tester.views.log'),
(r'^testcontent/(?P<logid>[0-9]+)/$', 'tester.views.content'),
(r'^script/(?P<name>.+)/$', 'tester.views.script'),
(r'^system/(?P<sysid>[0-9]+)/$', 'tester.views.system'),
(r'^testname/(?P<tstid>[0-9]+)/$', 'tester.views.testname'),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
)