Commit 99a10e6e authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Added all the added classes in views.py to the url patterns

parent 082d5c70
from django.urls import path
from .views import HomepageView, BooksListView, BooksDetailView, AuthorsListView, AuthorsDetailView
from .views import HomepageView, BooksListView, BooksDetailView, AuthorsListView, AuthorsDetailView, BookCreateView, BookUpdateView, AuthorCreateView, AuthorUpdateView
urlpatterns = [
path('home/', HomepageView, name='home'),
......@@ -7,4 +7,8 @@ urlpatterns = [
path('books/<int:pk>/details/', BooksDetailView.as_view(), name='book-details'),
path('authors/', AuthorsListView.as_view(), name='authors-list'),
path('authors/<int:pk>/details/', AuthorsDetailView.as_view(), name='author-details'),
path('books/add/', BookCreateView.as_view(), name='book-add'),
path('authors/add/', AuthorCreateView.as_view(), name='author-add'),
path('books/<int:pk>/edit/', BookUpdateView.as_view(), name='book-update'),
path('authors/<pk>/edit/', AuthorUpdateView.as_view(), name='author-update'),
]
\ 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