Test htsworkflow under several different django & python versions
[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+)',
21         flowcell_lane_detail, name="flowcell_lane_detail"),
22     url(r'^flowcell/(?P<flowcell_id>\w+)/((?P<lane_number>\w+)/)?$',
23         flowcell_detail, name="flowcell_detail"),
24     url(r'^inventory/', include('inventory.urls')),
25     url(r'^library/', include('samples.urls')),
26     url(r'^lanes_for/(?P<username>[-_ \w]+)?',
27         lanes_for, name='lanes_for'),
28     ### library id to admin url
29     url(r'^library_id_to_admin_url/(?P<lib_id>\w+)/$', library_id_to_admin_url),
30     ### sample / library information
31     url(r'^samples/', include('samples.urls')),
32     url(r'^sequencer/(?P<sequencer_id>\w+)', sequencer, name="sequencer"),
33
34     url(r'^admin/', include(admin.site.urls)),
35 ]