Commit c5342d53 authored by RJC's avatar RJC

added url endpoint for BookCreateView in urls.py in bookshelf module

parent 1c39c831
from django.urls import path from django.urls import path
from .views import HomePageView, BookListView, BookDetailView, AuthorListView, AuthorDetailView from .views import HomePageView, BookListView, BookDetailView, BookCreateView,\
AuthorListView, AuthorDetailView
urlpatterns = [ urlpatterns = [
path('homepage/', HomePageView.as_view()), path('homepage/', HomePageView.as_view()),
path('books/', BookListView.as_view()), path('books/', BookListView.as_view()),
path('books/add/', BookCreateView.as_view()),
path('books/<int:pk>/details/', BookDetailView.as_view()), path('books/<int:pk>/details/', BookDetailView.as_view()),
path('authors/', AuthorListView.as_view()), path('authors/', AuthorListView.as_view()),
path('authors/<int:pk>/details/', AuthorDetailView.as_view()), path('authors/<int:pk>/details/', AuthorDetailView.as_view()),
......
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