title: Tango with Django, Chapter 11: Could not parse the remainder: ' static' from 'load static'
body: <p>Here's the full error message:</p>
  
  <pre><code>Could not parse the remainder: ' static' from 'load static':
  
  1   {% extends 'rango/base.html' %}   &lt;===This line is highlighted
  2   {% load static %}
  3   
  4   {% block body_block %}
  5   &lt;div class="hero-unit"&gt;
  6   
  7   {% if user.is_authenticated %}
  8     &lt;h1&gt;Rango says...hello {{ user.username }}.&lt;/h1&gt;
  9   {% else %}
  10    &lt;h1&gt;Rango says...hello world.&lt;/h1&gt;
  11  {% endif %}
  </code></pre>
  
  <p>This page, index.html, used to work, but in Chapter 11 the book has the reader add Bootstrap to the html, and after setting up base.html with the proper classes, this page no longer works.  base.html also has the line:</p>
  
  <pre><code>{% load static %}
  </code></pre>
  
  <p>but deleting the same line from index.html above produces another error(with line 33 highlighted):</p>
  
  <pre><code>Invalid block tag: 'static', expected 'endblock'
  
  23    &lt;h3&gt;Most Viewed Pages:&lt;/h3&gt;
  24    {% if pages %}
  25    &lt;ul&gt;
  26      {% for page in pages %}
  27      &lt;li&gt;&lt;a href="{{ page.url }}"&gt;{{ page.title }} ({{ page.view_count }})&lt;/a&gt;&lt;/li&gt;
  28      {% endfor %}
  29    {% else %}
  30    &lt;strong&gt;No pages have been rangoed yet.&lt;/strong&gt;
  31    {% endif %}
  32        
  33    &lt;div&gt;&lt;img src="{% static 'rango.jpg' %}" alt="Picture of Rango" /&gt;&lt;/div&gt;
  34  
  35  &lt;/div&gt;
  36  
  37  {% endblock %}
  </code></pre>
  
  <p>base.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  {{ load static }}
  &lt;html&gt;
  ...
  ...
  </code></pre>