django-project/recipes/urls.py
Benjamin acbcf3f606 fixup! Add forms for adding recipes and versions
Basic form for adding a version. Still needs:

* Check of slug uniqueness
* Choose between author user or author name
* slug auto-creation
* ingredients

TODO:

* Add recipe
2023-02-17 16:41:22 +01:00

10 lines
324 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>/', views.version, name='version'),
path('<slug:slug>/', views.recipe, name='recipe'),
]