Commit d723596f authored by Ysabella Panghulan's avatar Ysabella Panghulan

added add-author in urls

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