cookbook/recipes/urls.py

10 lines
211 B
Python
Raw Normal View History

2019-10-28 16:50:13 +01:00
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'),
]