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
10 lines
324 B
Python
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'),
|
|
]
|