use url function call for url definition instead of just a bare tuple
[htsworkflow.git] / htsworkflow / frontend / urls.py
1 from django.conf.urls import include, patterns, url
2 from django.contrib import admin
3 import django
4 admin.autodiscover()
5
6 from django.conf import settings
7
8 urlpatterns = patterns('',
9     url('^accounts/login/$', 'django.contrib.auth.views.login'),
10     url('^accounts/logout/$', 'django.contrib.auth.views.logout'),
11     url('^accounts/logout_then_login/$', 'django.contrib.auth.views.logout_then_login'),
12     url('^accounts/password_change/$', 'django.contrib.auth.views.password_change'),
13     url('^accounts/password_change_done/$', 'django.contrib.auth.views.password_change_done'),
14     #url('^accounts/profile/$', 'htsworkflow.frontend.samples.views.user_profile'),
15     # Base:
16     url(r'^eland_config/', include('htsworkflow.frontend.eland_config.urls')),
17     ### MOVED Admin from here ###
18     # Experiments:
19     url(r'^experiments/', include('htsworkflow.frontend.experiments.urls')),
20     ### Flowcell:
21     url(r'^lane/(?P<lane_pk>\w+)',
22         'htsworkflow.frontend.experiments.views.flowcell_lane_detail'),
23     url(r'^flowcell/(?P<flowcell_id>\w+)/((?P<lane_number>\w+)/)?$',
24         'htsworkflow.frontend.experiments.views.flowcell_detail'),
25     ## AnalysTrack:
26     ##(r'^analysis/', include('htsworkflow.frontend.analysis.urls')),
27     ## Inventory urls
28     #url(r'^inventory/', include('htsworkflow.frontend.inventory.urls')),
29     ## Report Views:
30     ##url(r'^reports/', include('htsworkflow.frontend.reports.urls')),
31     ## Library browser
32     url(r'^library/$', 'htsworkflow.frontend.samples.views.library'),
33     url(r'^library/not_run/$',
34         'htsworkflow.frontend.samples.views.library_not_run'),
35     url(r'^library/(?P<lib_id>\w+)/$',
36         'htsworkflow.frontend.samples.views.library_to_flowcells'),
37     url(r'^lanes_for/$', 'htsworkflow.frontend.samples.views.lanes_for'),
38     url(r'^lanes_for/(?P<username>\w+)', 'htsworkflow.frontend.samples.views.lanes_for'),
39     ### library id to admin url
40     url(r'^library_id_to_admin_url/(?P<lib_id>\w+)/$',
41         'htsworkflow.frontend.samples.views.library_id_to_admin_url'),
42     ### sample / library information
43     url(r'^samples/', include('htsworkflow.frontend.samples.urls')),
44     url(r'^sequencer/(?P<sequencer_id>\w+)',
45         'htsworkflow.frontend.experiments.views.sequencer'),
46     ## Raw result files
47     #url(r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[0-9]+-[0-9]+)/summary/',
48       #'htsworkflow.frontend.samples.views.summaryhtm_fc_cnm'),
49     #url(r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[0-9]+-[0-9]+)/eland_result/(?P<lane>[1-8])',
50       #'htsworkflow.frontend.samples.views.result_fc_cnm_eland_lane'),
51     #url(r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc',
52       #'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane_ucsc'),
53     #url(r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])',
54       #'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane'),
55     url(r'^bcmagic/', include('htsworkflow.frontend.bcmagic.urls')),
56
57     url(r'^admin/', include(admin.site.urls)),
58 )
59
60 if settings.DEBUG:
61   urlpatterns += patterns('',
62       url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
63         {'document_root': settings.MEDIA_ROOT}),
64   )