1 from django.conf.urls.defaults import *
2 from django.contrib import admin
6 #from django.contrib import databrowse
7 #from htsworkflow.frontend.samples.models import Library
8 #databrowse.site.register(Library)
9 #databrowse.site.register(FlowCell)
11 from htsworkflow.frontend import settings
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'),
21 (r'^eland_config/', include('htsworkflow.frontend.eland_config.urls')),
23 (r'^admin/(.*)', admin.site.root),
25 (r'^experiments/', include('htsworkflow.frontend.experiments.urls')),
27 #(r'^analysis/', include('htsworkflow.frontend.analysis.urls')),
29 (r'^inventory/', include('htsworkflow.frontend.inventory.urls')),
31 (r'^reports/', include('htsworkflow.frontend.reports.urls')),
33 (r'^library/$', 'htsworkflow.frontend.samples.views.library'),
34 (r'^library/(?P<lib_id>\w+)/$',
35 'htsworkflow.frontend.samples.views.library_to_flowcells'),
36 # library id to admin url
37 (r'^library_id_to_admin_url/(?P<lib_id>\w+)/$',
38 'htsworkflow.frontend.samples.views.library_id_to_admin_url'),
40 (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/summary/',
41 'htsworkflow.frontend.samples.views.summaryhtm_fc_cnm'),
42 (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/eland_result/(?P<lane>[1-8])',
43 'htsworkflow.frontend.samples.views.result_fc_cnm_eland_lane'),
44 (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc',
45 'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane_ucsc'),
46 (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])',
47 'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane'),
48 (r'^bcmagic/', include('htsworkflow.frontend.bcmagic.urls')),
51 #(r'^databrowse/(.*)', databrowse.site.root)
55 urlpatterns += patterns('',
56 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
57 {'document_root': settings.MEDIA_ROOT}),