Commit b098bc0c authored by Brendan Fausto's avatar Brendan Fausto

fixed more errors in urls and views

parent 22db9d6c
# about/urls.py # about/urls.py
from django.urls import path from django.urls import path
from .views import index, HomePageView from .views import index, home_view
urlpatterns = [ urlpatterns = [
path('home', HomepageView, name='index'), path('home', home_view, name='index'),
] ]
app_name = "bookshelf" # for proper namespacing in urls, otherwise will result in errors app_name = "bookshelf" # for proper namespacing in urls, otherwise will result in errors
\ No newline at end of file
...@@ -5,7 +5,7 @@ from django.views.generic.list import ListView ...@@ -5,7 +5,7 @@ from django.views.generic.list import ListView
from .models import Books, Authors from .models import Books, Authors
class HomepageView(request): class home_view(request):
return render(request, 'bookshelf/homepage.html', { return render(request, 'bookshelf/homepage.html', {
'page_title': 'Books and Authors' 'page_title': 'Books and Authors'
}) })
......
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