created path for authors/add, a page where you can add an author

parent 963704f0
from django.urls import path
from .views import HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView, BookCreateView
from .views import (HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView,
BookCreateView, AuthorCreateView)
#url for bookshelf
......@@ -10,6 +11,8 @@ urlpatterns = [
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'),
path('authors/add/', AuthorCreateView.as_view(), name="new-author"),
]
......
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