Home | History | Annotate | Download | only in monitor
      1 # Copyright 2011 Google Inc. All Rights Reserved.
      2 #
      3 
      4 __author__ = 'kbaclawski (at] google.com (Krystian Baclawski)'
      5 
      6 from django.conf import settings
      7 from django.conf.urls.defaults import patterns
      8 
      9 urlpatterns = patterns(
     10     'dashboard', (r'^job-group$', 'JobGroupListPageHandler'),
     11     (r'^machine$', 'MachineListPageHandler'),
     12     (r'^job/(?P<job_id>\d+)/log$', 'LogPageHandler'),
     13     (r'^job/(?P<job_id>\d+)$', 'JobPageHandler'), (
     14         r'^job-group/(?P<job_group_id>\d+)/files/(?P<path>.*)$',
     15         'JobGroupFilesPageHandler'),
     16     (r'^job-group/(?P<job_group_id>\d+)$', 'JobGroupPageHandler'),
     17     (r'^$', 'DefaultPageHandler'))
     18 
     19 urlpatterns += patterns('',
     20                         (r'^static/(?P<path>.*)$', 'django.views.static.serve',
     21                          {'document_root': settings.MEDIA_ROOT}))
     22