{% extends 'base/index.html' %}
{% load num_range %}

{% block content %}
<h3>All Books</h3>
{% if user %}
<p>Hey {{ user.name }}, check out the latest books!</p>
{% endif %}
<div class="books">
  {% num_range 10 as some_range %}
  {% for i in some_range %}
  <div class="single-book">
    <img src="http://placehold.it/350x350" alt="">
    <h4>Some Damn Long and Drawn Out Story: Part {{i}}</h4>
    <h4 class="price">$19.99</h4>
  </div>
  {% endfor %}

</div>

{% endblock %}
{% extends 'base/index.html' %}
{% load num_range %}

{% block content %}
<h3>All Books</h3>
{% if user %}
<p>Hey {{ user.name }}, check out the latest books!</p>
{% endif %}
<div class="books">
  {% for book in books %}
  <a class="single-book" href="/books/{{ book.isbn }}">
    <div>
      <img src="http://placehold.it/350x350" alt="">
      <h4>{{ book.title }}</h4>
      <h4 class="price">${{ book.price }}</h4>
    </div>
  </a>
  {% endfor %}

</div>

{% endblock %}
Add view logic for books
Add view logic for books
