1 from django.conf.urls.defaults import *
2 from django.contrib import admin
7 #from django.contrib import databrowse
8 #from htsworkflow.frontend.samples.models import Library
9 #databrowse.site.register(Library)
10 #databrowse.site.register(FlowCell)
12 from htsworkflow.frontend import settings
15 urlpatterns = patterns('',
16 ('^accounts/login/$', 'django.contrib.auth.views.login'),
17 ('^accounts/logout/$', 'django.contrib.auth.views.logout'),
18 ('^accounts/logout_then_login/$', 'django.contrib.auth.views.logout_then_login'),
19 ('^accounts/pwchange/$', 'django.contrib.auth.views.password_change'),
20 ('^accounts/pwchange_done/$', 'django.contrib.auth.views.password_change_done'),
21 ('^accounts/profile/$', 'htsworkflow.frontend.samples.views.user_profile'),
23 (r'^eland_config/', include('htsworkflow.frontend.eland_config.urls')),
24 ### MOVED Admin from here ###
25 #(r'^admin/(.*)', admin.site.root),
27 (r'^experiments/', include('htsworkflow.frontend.experiments.urls')),
29 #(r'^analysis/', include('htsworkflow.frontend.analysis.urls')),
31 (r'^inventory/', include('htsworkflow.frontend.inventory.urls')),
33 (r'^reports/', include('htsworkflow.frontend.reports.urls')),
35 (r'^library/$', 'htsworkflow.frontend.samples.views.library'),
36 (r'^library/(?P<lib_id>\w+)/$',
37 'htsworkflow.frontend.samples.views.library_to_flowcells'),
38 # library id to admin url
39 (r'^library_id_to_admin_url/(?P<lib_id>\w+)/$',
40 'htsworkflow.frontend.samples.views.library_id_to_admin_url'),
42 (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/summary/',
43 'htsworkflow.frontend.samples.views.summaryhtm_fc_cnm'),
44 (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/eland_result/(?P<lane>[1-8])',
45 'htsworkflow.frontend.samples.views.result_fc_cnm_eland_lane'),
46 (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc',
47 'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane_ucsc'),
48 (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])',
49 'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane'),
50 (r'^bcmagic/', include('htsworkflow.frontend.bcmagic.urls')),
53 #(r'^databrowse/(.*)', databrowse.site.root)
57 if hasattr(admin.site, 'urls'):
58 urlpatterns += patterns('', (r'^admin/', include(admin.site.urls)))
60 urlpatterns += patterns('', (r'^admin/(.*)', admin.site.root))
63 urlpatterns += patterns('',
64 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
65 {'document_root': settings.MEDIA_ROOT}),