Commit 85892caf authored by Brendan Fausto's avatar Brendan Fausto

fixed import error in urls

parent b098bc0c
Brendan Gabrielle M. Fausto - 202033 - CSCI 40 E
Lab 03 - Reading
Date of Submission: 30/03/2023
Date of Submission: 12/04/2023
This lab was made through my own efforts and time.
Signed,
<sgd> Brendan Gabrielle M. Fausto - 30/03/2023
\ No newline at end of file
<sgd> Brendan Gabrielle M. Fausto - 12/04/2023
\ No newline at end of file
# about/urls.py
from django.urls import path
from .views import index, home_view
from .views import home_view
urlpatterns = [
path('home', home_view, name='index'),
......
......@@ -5,7 +5,7 @@ from django.views.generic.list import ListView
from .models import Books, Authors
class home_view(request):
def home_view(request):
return render(request, 'bookshelf/homepage.html', {
'page_title': 'Books and Authors'
})
......
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