from django.urls import path

from recipe.views import (
    recipe_create_view,
    recipe_delete_view,
    recipe_detail_view,
    recipe_list_view,
    recipe_update_view)

app_name = "recipes"
urlpatterns = (
    path(f'{app_name}/', view=recipe_list_view, name='list'),
    path(f'{app_name}/details/<str:name>/', view=recipe_detail_view, name='detail'),
    path(f'{app_name}/create/', view=recipe_create_view, name='create'),
    path(f'{app_name}/delete/<int:pk>', view=recipe_delete_view, name='delete'),
    path(f'{app_name}/update/<int:pk>', view=recipe_update_view, name='update'),
)

from django.urls import path

from recipe.views import (
    recipe_create_view,
    recipe_delete_view,
    recipe_detail_view,
    recipe_list_view,
    recipe_update_view)

app_name = "recipes"
urlpatterns = (
    path(f'{app_name}/', view=recipe_list_view, name='list'),
    path(f'{app_name}/details/<str:name>/', view=recipe_detail_view, name='detail'),
    path(f'{app_name}/create/', view=recipe_create_view, name='create'),
    path(f'{app_name}/delete/<int:pk>', view=recipe_delete_view, name='delete'),
    path(f'{app_name}/update/<int:pk>', view=recipe_update_view, name='update'),
)
