Commit 58529812 authored by RJC's avatar RJC

shortened html href urls

parent 14b42b3c
......@@ -8,12 +8,12 @@
<p>{{ authors.bio }}</p><br>
<h2>Books by {{ authors.first_name }} {{ authors.last_name }} I love <3:</h2>
{% for books in authors.books.all %}
<a href="http://127.0.0.1:8000/books/{{ books.pk }}/details/">{{ books.title }}</a><br>
<a href="/books/{{ books.pk }}/details/">{{ books.title }}</a><br>
{% endfor %}
<br>
<a href="http://127.0.0.1:8000/homepage/">Home</a>
<a href="/homepage/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/books/">Books</a>
<a href="/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
<a href="/authors/">Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -4,10 +4,10 @@
{% block header %}RJ's Favorite Authors{% endblock %}
{% block content %}
{% for authors in authors %}
<a href="http://127.0.0.1:8000/authors/{{ authors.pk }}/details/">{{ authors.first_name }} {{ authors.last_name }}</a><br>
<a href="/authors/{{ authors.pk }}/details/">{{ authors.first_name }} {{ authors.last_name }}</a><br>
{% endfor %}
<br>
<a href="http://127.0.0.1:8000/homepage/">Home</a>
<a href="/homepage/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/books/">Books</a>
<a href="/books/">Books</a>
{% endblock %}
\ No newline at end of file
......@@ -3,14 +3,14 @@
{% block title %}{{ books.title }}{% endblock %}
{% block header %}{{ books.title }}{% endblock %}
{% block content %}
<a href="http://127.0.0.1:8000/authors/{{ books.author.pk }}/details/">{{ books.author }}</a><br>
<a href="/authors/{{ books.author.pk }}/details/">{{ books.author }}</a><br>
<p>{{ books.publisher }}</p><br>
<p>{{ books.year_published }}</p><br>
<p>{{ books.ISBN }}</p><br>
<p>{{ books.blurb }}</p><br>
<a href="http://127.0.0.1:8000/homepage/">Home</a>
<a href="/homepage/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/books/">Books</a>
<a href="/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
<a href="/authors/">Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -4,10 +4,10 @@
{% block header %}RJ's Favorite Books{% endblock %}
{% block content %}
{% for books in books %}
<a href="http://127.0.0.1:8000/books/{{ books.pk }}/details/">{{ books.title }}</a><br>
<a href="/books/{{ books.pk }}/details/">{{ books.title }}</a><br>
{% endfor %}
<br>
<a href="http://127.0.0.1:8000/homepage/">Home</a>
<a href="/homepage/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
<a href="/authors/">Authors</a>
{% endblock %}
\ No newline at end of file
......@@ -5,7 +5,7 @@
{% block content %}
<p>I usually just read whatever books that pique my interest. Though I am slightly partial to the
fantasy genre of books.</p>
<a href="http://127.0.0.1:8000/books/">Books</a>
<a href="/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
<a href="/authors/">Authors</a>
{% endblock %}
\ 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