title: Django Bootstrap Pagination not working
body: <p>I create an application using, django 1.8 and want to implement pagination pages. I use this add-on: <a href="https://github.com/jmcclell/django-bootstrap-pagination" rel="nofollow">https://github.com/jmcclell/django-bootstrap-pagination</a></p>
  
  <p>I get an error:</p>
  
  <pre><code>AttributeError at /blog/
  'NoneType' object has no attribute 'paginator'
  </code></pre>
  
  <p>In settings.py I have:</p>
  
  <pre><code> INSTALLED_APPS = (
          'bootstrap_pagination',
      )
  </code></pre>
  
  <p>and </p>
  
  <pre><code>TEMPLATE_CONTEXT_PROCESSORS = (
      "django.core.context_processors.request",
  )
  </code></pre>
  
  <p>This is my template (list of posts):</p>
  
  <pre><code>{% extends "base.html" %}
  {% load bootstrap_pagination %}
  
  {% block content %}
      &lt;ul&gt;
          {% for p in post %}
              &lt;hr&gt;
              &lt;li&gt;
                  &lt;h3&gt;&lt;a href="{% url 'blog:detail' p.id %}"&gt;{{ p.title }}&lt;/a&gt;&lt;/h3&gt;
                  &lt;p&gt;{{ p.text | truncatewords:50 }}&lt;/p&gt;
              &lt;/li&gt;
          {% endfor %}
      &lt;/ul&gt;
  
  &lt;div class="pagination-row text-right"&gt;
      {% bootstrap_paginate page_obj range=4 %}
  &lt;/div&gt;
  
  {% endblock %}
  
  {% block content_bottom %}{% endblock content_bottom %}
  </code></pre>