1 2 3 4 5 6 7 8 9 10 11 12 13
from django.urls import path from .views import ( NotebookListView, NotebookDetailView, ) app_name = "notebooks" urlpatterns = [ path(r'<slug>', NotebookDetailView.as_view(), name='detail',), path(r'', NotebookListView.as_view(), name='list',), ]