Commit 2d9eaad6 authored by Deokhyun Lee's avatar Deokhyun Lee

links to books and authors now moved to base.html

parent be16c186
{% extends 'base.html'%}
{% block title %}
My Favorite Books & Authors
{% endblock %}
{% block content %}
<h1>Welcome to Deokhyun's Database of Favorite Books and Authors!</h1>
<p>My personal preference:
<p>I love reading fantasy or Science Fiction!
Therefore, Frank Herbert's
Dune is one of the best
American authors for me!</p></p>
<a href="/books">Books</a>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/authors">Authors</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html'%}
{% block title %}
My Favorite Books
{% endblock %}
{% block content %}
<h1>Deokhyun's Favorite Books:</h1>
{% endblock %}
\ No newline at end of file
......@@ -3,6 +3,7 @@
{% block title %}
My Favorite Books & Authors
{% endblock %}
{% block content %}
<h1>Welcome to Deokhyun's Database of Favorite Books and Authors!</h1>
<p>My personal preference:
......@@ -10,5 +11,4 @@
Therefore, Frank Herbert's
Dune is one of the best
American authors for me!</p></p>
<a href="/books">Books</a>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/authors">Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -5,11 +5,22 @@ from django.template import loader
from django.shortcuts import render
# views for Home (landing page)
def home(request):
context = {}
template = loader.get_template('home/index.html')
return HttpResponse(template.render(context, request))
# for Authors page
def authors(request):
return
context = {}
template = loader.get_template('authors/index.html')
return HttpResponse(template.render(context, request))
# for Books page
def books(request):
return
\ No newline at end of file
context = {}
template = loader.get_template('books/index.html')
return HttpResponse(template.render(context, request))
\ No newline at end of file
......@@ -8,5 +8,6 @@
<div class="container">
{% block content %}{% endblock %}
</div>
<a href="/books">Books</a>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/authors">Authors</a>
</body>
</html>
\ No newline at end of file
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