created books.html file and added the necessary data

parent 37c75019
{% extends 'base.html' %}
{% load static %}
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
<h1> {{ object.title }} </h1>
<a href = '{{ object.author.get_absolute_url }}'>{{ object.author }}</a>
<p>{{ object.publisher }}</p>
<p>{{ object.year_published }}</p>
<p>{{ object.ISBN }}</p>
<p>{{ object.blurb }}</p>
<a href = '/bookshelf/home/'>Home</a>
<a href = '/bookshelf/books/'>Books</a>
<a href = '/bookshelf/authors/'>Authors</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %} My Favorite Books {% endblock %}
{% block content %}
<h1>Lance's Favorite Books</h1>
<ul>
{% for object in object_list %}
<li>
<a href="{{ object.get_absolute_url }}">
{{object.title}}
</a>
</li>
{% endfor %}
</ul>
<a href='/bookshelf/home/'>Home</a>
<a href='/bookshelf/authors/'>Authors</a>
{% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
}
{% block content %} {% block content %}
<h1>Welcome to Lance's Database of Favorite Books and Authors!</h1> <h1>Welcome to Lance's Database of Favorite Books and Authors!</h1>
......
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