root/urls.py

Revision 0013bdd19ea17ff1809bb2431bb3a920bcd712ee, 1.3 KB (checked in by Frederic Lepied <frederic.lepied@…>, 3 years ago)

added a naviagtion by test names

  • Property mode set to 100644
Line 
1from django.conf.urls.defaults import *
2
3# Uncomment the next two lines to enable the admin:
4from django.contrib import admin
5admin.autodiscover()
6
7urlpatterns = patterns('',
8    # Example:
9    # (r'^pxemngr/', include('pxemngr.foo.urls')),
10
11    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
12    # to INSTALLED_APPS to enable admin documentation:
13    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
14
15    (r'^localboot/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.localboot'),
16    (r'^localboot/$', 'pxe.views.localboot1'),
17    (r'^profile/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.profile'),
18    (r'^profile/$', 'pxe.views.profile1'),
19                       
20    (r'^upload/(?P<logid>[0-9]+)/$', 'tester.views.upload_file'),
21    (r'^nexttest/$', 'tester.views.next_test1'),
22    (r'^nexttest/(?P<mac>[a-fA-F0-9:-]+)/$', 'tester.views.next_test'),
23   
24    (r'^$', 'tester.views.index'),
25    (r'^tests/(?P<verid>[0-9]+)/$', 'tester.views.logs'),
26    (r'^test/(?P<logid>[0-9]+)/$', 'tester.views.log'),
27    (r'^testcontent/(?P<logid>[0-9]+)/$', 'tester.views.content'),
28    (r'^script/(?P<name>.+)/$', 'tester.views.script'),
29    (r'^system/(?P<sysid>[0-9]+)/$', 'tester.views.system'),
30    (r'^testname/(?P<tstid>[0-9]+)/$', 'tester.views.testname'),
31
32    # Uncomment the next line to enable the admin:
33    (r'^admin/(.*)', admin.site.root),
34)
Note: See TracBrowser for help on using the browser.