27 lines
980 B
Python
27 lines
980 B
Python
from django.urls import path
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
from yeast.views import YeastListView, BatchListView, home, sample, batch, \
|
|
batch_labels, AddBatch, AddStrain, get_batch, NewPropogation
|
|
|
|
# app_name = 'yeast'
|
|
|
|
urlpatterns = [
|
|
|
|
path('samples/<int:yeast_id>/', sample, name='yeast'),
|
|
path('samples/', YeastListView.as_view(), name='yeasts'),
|
|
path('batches/addbatch/',
|
|
login_required(AddBatch.as_view()),
|
|
name='addbatch'),
|
|
path('batches/addstrain/',
|
|
login_required(AddStrain.as_view()),
|
|
name='addstrain'),
|
|
path('batches/<int:propogation_id>/', batch, name='batch'),
|
|
path('batches/', BatchListView.as_view(), name='batches'),
|
|
path('batch_lookup/', get_batch, name='get_batch'),
|
|
path('batch_labels/<int:propogation_id>/',
|
|
login_required(batch_labels), name='labels'),
|
|
path('progation/add/', NewPropogation, name='propogate'),
|
|
path('', home, name='home'),
|
|
]
|