title: Django could not parse the remainder
body: <p>I looked through my code a few times and at all previous answers to this error and could still not find a solution.</p>
  
  <p>Below is the code in question:</p>
  
  <p><code>base.html:</code></p>
  
  <pre><code>{% load staticfiles %}
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  
      &lt;meta charset="UTF-8"&gt;
      &lt;meta http-equiv="X-UA-COMPATIBLE" content="IE=edge"&gt;
      &lt;meta name="viewport" content="wideth=device-width, initial-scale=1"&gt;
      &lt;title&gt;{% block title %}Rapid Prototypes {% endblock %}&lt;/title&gt;
      &lt;link rel="stylesheet" href="{% static 'css/site.css' %}"&gt;
      &lt;link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"&gt;
  &lt;/head&gt;
  &lt;body id="{% block body-id %}body{% endblock %}"&gt;
  {% block top-nav-wrapper %}
  &lt;div class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
      &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle"
                      data-toggle="collapse" data-target=".navbar-collapse"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a class="navbar-brand" href="/"&gt;Rapid Prototypes&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="collapse navbar-collapse"&gt;
              &lt;ul class="nav navbar-nav"&gt;
                  &lt;li {% if slug=='index' %}class="active"{% endif %}&gt;
                      &lt;a href="/"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li {% if slug=='contact' %}class="active"{% endif %}&gt;
                      &lt;a href="{% url 'page' 'contact' %}"&gt;Contact&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                  &lt;li {% if slug=='login' %}class="active"{% endif %}&gt;
                      &lt;a href="{% url 'page' 'login' %}"&gt;Login&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  {% endblock %}
  {% block content %}{% endblock %}
  &lt;script src="{% static 'js/jquery.min.js' %}"&gt;&lt;/script&gt;
  &lt;script src="{% static 'js/bootstrap.min.js' %}"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The error is said to be on the 29th line which is the line with the first if statement. The exact error statement is: Could not parse the remainder: '=='index'' from 'slug=='index''</p>
  
  <p>Thank you in advance for your help!</p>