created url paths for authorslist and author details

parent 0780cd12
from django.urls import path
from .views import HomeView, BookListView, BookDetailView
from .views import HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView
#url for bookshelf
urlpatterns = [
path('home/', HomeView, name = 'home'),
path('books/', BookListView.as_view(), name='book-list'),
path('books/', BookListView.as_view(), name = 'book-list'),
path('books/<int:pk>/details', BookDetailView.as_view(), name = 'book-details'),
path('authors/', AuthorListView.as_view(), name = 'author-list'),
path('authors/<int:pk>/details', AuthorDetailView.as_view(), name = 'author-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