Added paths

parent 5135c371
from django.urls import path from django.urls import path
from . import views
from .views import index from .views import home
urlpatterns = [ urlpatterns = [
path('', index, name='index'), path('home/', home, name='home'),
path('home/books/', views.BooksView.as_view(), name='books'),
path('home/authors/', views.AuthorsView.as_view(), name='authors'),
path('<int:book_id>/book_details', views.BooksDetailView.as_view(), name="book_detail"),
path('<int:author_id>/author_details', views.AuthorsDetailView.as_view(), name="author_detail"),
] ]
app_name = 'bookshelf' app_name = 'bookshelf'
\ 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