Pulling in barcode magic from sample tracker and starting to update it to use ExtJS
[htsworkflow.git] / htsworkflow / frontend / urls.py
1 from django.conf.urls.defaults import *
2 from django.contrib import admin
3 admin.autodiscover()
4
5 # Databrowser:
6 #from django.contrib import databrowse
7 #from htsworkflow.frontend.samples.models import Library
8 #databrowse.site.register(Library)
9 #databrowse.site.register(FlowCell)
10
11 from htsworkflow.frontend import settings
12
13 urlpatterns = patterns('',
14     ('^accounts/login/$', 'django.contrib.auth.views.login'),
15     ('^accounts/logout/$', 'django.contrib.auth.views.logout'),
16     ('^accounts/logout_then_login/$', 'django.contrib.auth.views.logout_then_login'),
17     ('^accounts/pwchange/$', 'django.contrib.auth.views.password_change'),
18     ('^accounts/pwchange_done/$', 'django.contrib.auth.views.password_change_done'),
19     ('^accounts/profile/$', 'htsworkflow.frontend.samples.views.user_profile'),
20     # Base:
21     (r'^eland_config/', include('htsworkflow.frontend.eland_config.urls')),
22     # Admin:
23     (r'^admin/(.*)', admin.site.root),
24     # Experiments:
25     (r'^experiments/', include('htsworkflow.frontend.experiments.urls')),
26     # AnalysTrack:
27     #(r'^analysis/', include('htsworkflow.frontend.analysis.urls')),
28     # Report Views:
29     (r'^inventory/', include('htsworkflow.frontend.inventory.urls')),
30     (r'^reports/', include('htsworkflow.frontend.reports.urls')),
31     # Library browser
32     (r'^library/$', 'htsworkflow.frontend.samples.views.library'),
33     (r'^library/(?P<lib_id>\w+)/$', 
34       'htsworkflow.frontend.samples.views.library_to_flowcells'),
35     # library id to admin url
36     (r'^library_id_to_admin_url/(?P<lib_id>\w+)/$',
37      'htsworkflow.frontend.samples.views.library_id_to_admin_url'),
38     # Raw result files
39     (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/summary/',
40       'htsworkflow.frontend.samples.views.summaryhtm_fc_cnm'),
41     (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/eland_result/(?P<lane>[1-8])',
42       'htsworkflow.frontend.samples.views.result_fc_cnm_eland_lane'),
43     (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc',
44       'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane_ucsc'),
45     (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])',
46       'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane'),
47     (r'^bcmagic/', include('htsworkflow.frontend.bcmagic.urls')),
48     
49     # databrowser
50     #(r'^databrowse/(.*)', databrowse.site.root)
51 )
52
53 if settings.DEBUG:
54   urlpatterns += patterns('',
55       (r'^static/(?P<path>.*)$', 'django.views.static.serve', 
56         {'document_root': settings.MEDIA_ROOT}),
57   )