django-project/recipes/urls.py
Benjamin deb8d339d6 fixup! Add forms for adding recipes and versions
implement edit version with bug where editing and saving yields existing
slug error
2023-03-02 22:01:32 +01:00

11 lines
428 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.recipes, name='recipes'),
path('<slug:slug_recipe>/add-version/', views.add_version, name='add-version'),
path('<slug:slug_recipe>/<slug:slug_version>/edit-version/', views.edit_version, name='edit-version'),
path('<slug:slug_recipe>/<slug:slug_version>/', views.version, name='version'),
path('<slug:slug>/', views.recipe, name='recipe'),
]