brewery-website/beer/urls.py
Chris Giacofei 1d830eb22d More batch info.
Please enter the commit message for your changes. Lines starting
2024-06-24 16:25:18 -04:00

16 lines
683 B
Python

from django.urls import path, re_path
from django.conf import settings
from django.conf.urls.static import static
from .views import home, view_recipe, view_batch, update_ferm, update_hop
urlpatterns = [
path('', home, name='home'),
path('recipes/<int:recipe_id>/', view_recipe, name='recipe'),
path('batches/<int:batch_id>/recipe/<int:recipe_id>', view_recipe),
path('batches/<int:batch_id>/', view_batch, name='batch'),
path('ingredients/fermentables/<int:ferm_id>',
update_ferm, name='update_fermentable'),
path('ingredients/hops/<int:hop_id>', update_hop, name='update_hop'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)