9 lines
211 B
Python
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'),
|
|
]
|