django-project/recipes/urls.py

9 lines
243 B
Python

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