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