02af9b3c606dc21a22caa8137be3c3a7064e0f5a
[htsworkflow.git] / htsworkflow / urls.py
1 from django.conf.urls import include,  url
2 from django.contrib import admin
3 admin.autodiscover()
4
5
6 from experiments.views import (
7     flowcell_lane_detail,
8     flowcell_detail,
9     lanes_for,
10     sequencer,
11 )
12 from samples.views import library_id_to_admin_url
13
14 urlpatterns = [
15     url('^accounts/', include('django.contrib.auth.urls')),
16     # Base:
17     url(r'^eland_config/', include('eland_config.urls')),
18     # Experiments:
19     url(r'^experiments/', include('experiments.urls')),
20     url(r'^lane/(?P<lane_pk>\w+)', flowcell_lane_detail),
21     url(r'^flowcell/(?P<flowcell_id>\w+)/((?P<lane_number>\w+)/)?$', flowcell_detail),
22     url(r'^inventory/', include('inventory.urls')),
23     url(r'^library/', include('samples.urls')),
24     url(r'^lanes_for/$', lanes_for),
25     url(r'^lanes_for/(?P<username>[-_ \w]+)', lanes_for),
26     ### library id to admin url
27     url(r'^library_id_to_admin_url/(?P<lib_id>\w+)/$', library_id_to_admin_url),
28     ### sample / library information
29     url(r'^samples/', include('samples.urls')),
30     url(r'^sequencer/(?P<sequencer_id>\w+)', sequencer),
31
32     url(r'^admin/', include(admin.site.urls)),
33 ]