Commit 0a9c0b3c authored by Ysabella Panghulan's avatar Ysabella Panghulan

added add-book in urls

parent e51f3b7e
from django.urls import path from django.urls import path
from . import views from . import views
from .views import (Homepage, BooksListView, BooksDetailView, AuthorListView, AuthorDetailView, AuthorCreateView) from .views import (Homepage, BooksListView, BooksDetailView, BookCreateView, AuthorListView, AuthorDetailView, AuthorCreateView)
urlpatterns = [ urlpatterns = [
path('home/books/add', BookCreateView.as_view(), name='add-book'),
path('home/authors/add', AuthorCreateView.as_view(), name='add-author'), path('home/authors/add', AuthorCreateView.as_view(), name='add-author'),
path('authors/', AuthorListView.as_view(), name='authors'), path('authors/', AuthorListView.as_view(), name='authors'),
path('authors/<int:pk>/details/', AuthorDetailView.as_view(), name='author-details'), 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