created book list and book details url paths

parent dd088b80
from django.urls import path from django.urls import path
from .views import HomeView from .views import HomeView, BookListView, BookDetailView
#url for bookshelf #url for bookshelf
urlpatterns = [ urlpatterns = [
path('home/', HomeView, name = 'home'), path('home/', HomeView, name = 'home'),
path('books/', BookListView.as_view(), name='book-list'),
path('books/<int:pk>/details', BookDetailView.as_view(), name = 'book-details'),
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment