cookbook/recipes/urls.py
2019-10-28 16:52:22 +01:00

9 lines
211 B
Python

from django.urls import path
from . import views
app_name = 'recipes'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
]