Commit 6326bbe6 authored by Joei Yucoco's avatar Joei Yucoco

implemented templates/views/urls so that the website works & has all the details

parent 3d02691a
<!DOCTYPE html>
{% extends 'base.html' %}
{% block title %}My Favorite Books and Authors{% endblock %}
{% block title %}{{object}}{% endblock %}
{% block content %}
<h1>Hello author details</h1>
<h2> {{object}} </h2>
<h1> {{object}} </h1>
<h3>{{object.age}}</h3>
<h3>{{object.nationality}}</h3>
<h3>{{object.bio}}</h3>
<h2> Books by {{object}} I love:</h2>
<ul>
{% for entry in object.books_set.all %}
<li>
<a href="{{ entry.get_absolute_detail_url }}" >
{{ entry }}
</a>
</li>
{% endfor %}
</ul>
<h3>
<a href="{{ object.get_absolute_home_url }}" >
......
<!DOCTYPE html>
{% extends 'base.html' %}
{% block title %}My Favorite Books and Authors{% endblock %}
{% block title %}My Favorite Authors{% endblock %}
{% block content %}
<h1>Hello authors</h1>
<h1>Joei's Favorite Authors</h1>
<ul>
{% for object in object_list %}
<li>
......
......@@ -2,8 +2,16 @@
{% extends 'base.html' %}
{% block title %}{{ object }}{% endblock %}
{% block content %}
<h1>Hello book details</h1>
<h2> {{object}} </h2>
<h1>{{object}}</h1>
<h3>
<a href="{{ object.author.get_absolute_detail_url }}" >
{{object.author}}
</a>
</h3>
<h3>{{object.publisher}}</h3>
<h3>{{object.year_published}}</h3>
<h3>{{object.ISBN}}</h3>
<h3>{{object.blurb}}</h3>
<h3>
<a href="{{ object.get_absolute_home_url }}" >
......
......@@ -5,7 +5,7 @@
<center>
<h1>Welcome to Joei's Database of<br>
Favorite Books and Authors</h1>
Favorite Books and Authors!</h1>
<h3>I like stuff that aren't boring</h3>
<br>
......
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