Commit 6f7c0bcb authored by Brendan Fausto's avatar Brendan Fausto

Created blank url to avoid 404 error, and committing new db

parent 52cfa1ab
...@@ -5,7 +5,8 @@ from .views import (home_view, AuthorListView, BookListView, BookDetailView, Aut ...@@ -5,7 +5,8 @@ from .views import (home_view, AuthorListView, BookListView, BookDetailView, Aut
BookCreateView, AuthorCreateView, BookUpdateView, AuthorUpdateView) BookCreateView, AuthorCreateView, BookUpdateView, AuthorUpdateView)
urlpatterns = [ urlpatterns = [
path('home', home_view, name='index'), path('', home_view, name='index'),
path('home', home_view, name='home'),
path('books', BookListView.as_view(), name='book-list'), path('books', BookListView.as_view(), name='book-list'),
path('authors', AuthorListView.as_view(), name='author-list'), path('authors', AuthorListView.as_view(), name='author-list'),
path('books/<int:pk>/details', BookDetailView.as_view(), name='books-details'), path('books/<int:pk>/details', BookDetailView.as_view(), name='books-details'),
......
No preview for this file type
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