Updated Urls

parent 9d85de50
from django.urls import path from django.urls import path
from .views import index from . import views
from .views import (Home_Views, Authors_Details_Views,
Authors_Views, Book_Details_Views,
Books_Views)
urlpatterns = [ urlpatterns = [
path('', index, name='index') path('home/', views.Home_Views, name='Home'),
path('authors/', Authors_Views.as_view(), name='Authors'),
path('books/', Books_Views.as_view(), name='Books'),
path('authors/<int:pk>/details/', Authors_Details_Views.as_view(), name='Author_details'),
path('books/<int:pk>/details/', Book_Details_Views.as_view(), name='Book_details'),
] ]
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