diff options
author | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2006-06-15 15:43:07 +0000 |
---|---|---|
committer | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2006-06-15 15:43:07 +0000 |
commit | 14724835e271422f196d97b9a5a65346fbb02e94 (patch) | |
tree | df94850b8c8e95df1a3e57e7586638e44df353e7 /reports/brpt/urls.py | |
parent | 93fa7685dd976606273fc286a5f9988a1308cc85 (diff) | |
download | bcfg2-14724835e271422f196d97b9a5a65346fbb02e94.tar.gz bcfg2-14724835e271422f196d97b9a5a65346fbb02e94.tar.bz2 bcfg2-14724835e271422f196d97b9a5a65346fbb02e94.zip |
Initial commit of Django based reporting subsystem. Only works with fake data so far...
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1883 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/brpt/urls.py')
-rw-r--r-- | reports/brpt/urls.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/reports/brpt/urls.py b/reports/brpt/urls.py new file mode 100644 index 000000000..3f284cc6c --- /dev/null +++ b/reports/brpt/urls.py @@ -0,0 +1,30 @@ +from django.conf.urls.defaults import * + +urlpatterns = patterns('', + # Example: + # (r'^brpt/', include('brpt.apps.foo.urls.foo')), + (r'^/*$','brpt.reports.views.index'), + (r'^clients/(?P<hostname>\S+)/(?P<pk>\d+)/$', 'brpt.reports.views.client_detail'), + (r'^clients/(?P<hostname>\S+)/$', 'brpt.reports.views.client_detail'), + (r'^clients/(?P<hostname>\S+)$', 'brpt.reports.views.client_detail'), + #hack because hostnames have periods and we still want to append slash + (r'^clients/$','brpt.reports.views.client_index'), + + (r'^displays/sys-view/$','brpt.reports.views.display_sys_view'), + (r'^displays/summary/$','brpt.reports.views.display_summary'), + (r'^displays/timing/$','brpt.reports.views.display_timing'), + (r'^displays/$','brpt.reports.views.display_index'), + + # Uncomment this for admin: + (r'^admin/', include('django.contrib.admin.urls')), + + + + + #Remove this when not doing DEVELOPMENT + #and i quote: + #Using this method is inefficient and insecure. Do not use this in a production setting. Use this only for development. + (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': '/Users/joey/anl-mcs/dev/bcfg2/reports/site_media/'}), + + +) |