brewery-website/yeast/urls.py
Chris GIACOFEI c4d9d9489d Fix names to make all the things work.
Need to use 'yeast' instead of 'sample' to keep thing consistent
for the label generator.
2024-05-31 08:46:57 -04:00

19 lines
718 B
Python

from django.urls import include, path
from django.contrib import admin
from django.contrib.flatpages import views
from yeast.views import YeastListView, BatchListView, home, sample, batch, batch_labels, addBatch, addStrain
# app_name = 'yeast'
urlpatterns = [
path('samples/<int:yeast_id>/', sample, name='yeast'),
path('samples/', YeastListView.as_view(), name='yeasts'),
path('batches/addbatch/', addBatch.as_view(), name='addbatch'),
path('batches/addstrain/', addStrain.as_view(), name='addstrain'),
path('batches/<int:batch_id>/', batch, name='batch'),
path('batches/', BatchListView.as_view(), name='batches'),
path('batch_labels/<int:batch_id>/', batch_labels, name='labels'),
]