Commit 6dd0cb7d authored by Ysabella Panghulan's avatar Ysabella Panghulan

added books list and detail views to url paths

parent 1601b1bb
from django.urls import path from django.urls import path
from . import views from . import views
from .views import Homepage from .views import (Homepage, BooksListView, BooksDetailView)
urlpatterns = [ urlpatterns = [
path('books', BooksListView.as_view(), name='books'),
path('books/<int:pk>/details', BooksDetailView.as_view(), name='book-details'),
path('home', Homepage.as_view(), name='home'), path('home', Homepage.as_view(), name='home'),
] ]
\ No newline at end of file
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