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//', 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//', batch, name='batch'), path('batches/', BatchListView.as_view(), name='batches'), path('batch_lookup/', get_batch, name='get_batch'), path('batch_labels//', login_required(batch_labels), name='labels'), path('progation/add/', NewPropogation, name='propogate'), path('', home, name='home'), ]