created path for books/add/

parent 69f28283
from django.urls import path
from .views import HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView
from .views import HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView, BookCreateView
#url for bookshelf
......@@ -7,6 +7,7 @@ urlpatterns = [
path('home/', HomeView, name = 'home'),
path('books/', BookListView.as_view(), name = 'book-list'),
path('books/<int:pk>/details', BookDetailView.as_view(), name = 'book-details'),
path('books/add/', BookCreateView.as_view(), name="new-book"),
path('authors/', AuthorListView.as_view(), name = 'author-list'),
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