Commit 11dd3d43 authored by Ysabella Panghulan's avatar Ysabella Panghulan

fixed typo in urls.py

parent 2d6d70c8
from django.urls import path from django.urls import path
from . import views from . import views
from .views import (Homepage, BooksListView, BooksDetailView, BookCreateView, AuthorListView, AuthorDetailView, AuthorCreateView) from .views import (Homepage, BooksListView, BooksDetailView, BooksCreateView, AuthorListView, AuthorDetailView, AuthorCreateView)
urlpatterns = [ urlpatterns = [
path('home/books/add', BookCreateView.as_view(), name='add-book'), path('home/books/add', BooksCreateView.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