Commit ca1d598f authored by Brendan Fausto's avatar Brendan Fausto

Added links to templates, and final commit

parent fa241b3a
Pipeline #3133 failed with stages
......@@ -28,6 +28,7 @@
{% endif %}
{% endfor %}
<br>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -24,6 +24,7 @@
</ul>
<p>
<a href = "http://127.0.0.1:8000/">Home</a>
<a href = "http://127.0.0.1:8000/books">Books</a>
<a href = "http://127.0.0.1:8000/authors">Authors</a>
</p>
......
......@@ -5,11 +5,11 @@
{% endblock %}
{% block header %}
Welcome to Brendan's favorite Books and Authors!
<h1>Welcome to Brendan's favorite Books and Authors!</h1>
{% endblock %}
{% block content %}
<p>I don't really have a preference to genres of books, so long as they are either insightful or entertaining to read.</p>
<p>I enjoy a wide variety of books, so long as they are either insightful or entertaining to read.</p>
<br>
<p>
<a href = "http://127.0.0.1:8000/books">Books</a>
......
......@@ -20,7 +20,7 @@ class AuthorListView(ListView):
class BookListView(ListView):
def get(self, request):
books = Books.objects.all()
books = Books.objects.all()
return render(request, 'bookshelf/books_page.html', {
'books': books
})
......
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