title: Trying to use django pagination I get this error "TemplateDoesNotExist at /videos/"
body: <p>I keep getting the following error message trying to use pagination in Django. I have tried and tried but can't seem to figure this out. Was gonna do without it but a modern site needs pagination.</p>
  
  <pre><code>TemplateDoesNotExist at /videos/
  </code></pre>
  
  <p>this is what I have in my views.py</p>
  
  <pre><code>from django.shortcuts import render, get_object_or_404
  
  from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
  
  
  from .models import Video
  
  
  def index(request):
      page = "video/index.html"
      title = "Video"
      # videos = Video.objects.all()
  
      videos_list = Video.objects.all()
      paginator = Paginator(videos_list, 25)  # Show 25 contacts per page
  
      page = request.GET.get('page')
      try:
          videos = paginator.page(page)
      except PageNotAnInteger:
  
          videos = paginator.page(1)
      except EmptyPage:
  
          videos = paginator.page(paginator.num_pages)
  
      context = {
          "videos": videos,
          "title": title,
      }
      return render(request, page, context)
  </code></pre>
  
  <p>this is what I have in my video/index</p>
  
  <pre><code>{% block content %}
  &lt;div id="content"&gt;&lt;h1 style="color: #f5f5f5; margin:0"&gt;Video index&lt;/h1&gt;&lt;/div&gt;
  
  {% for r in videos %}
  
      &lt;div class="index-box"&gt;
          &lt;div &gt;
              &lt;img src="{{ r.img }}" style="width:241px; height: 200px"&gt;
          &lt;/div&gt;
          &lt;a href="{% url 'video:detail' r.slug %}"&gt;
              &lt;h5 style="margin-left: 10px "&gt;{{ r.title |truncatechars:15}}&lt;/h5&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  
  {% endfor %}
  
  
  
  
  &lt;div class="pagination"&gt;
      &lt;span class="step-links"&gt;
          {% if videos.has_previous %}
              &lt;a href="?page={{ videos.previous_page_number }}"&gt;previous&lt;/a&gt;
          {% endif %}
  
          &lt;span class="current"&gt;
              Page {{ videos.number }} of {{ videos.paginator.num_pages }}.
          &lt;/span&gt;
  
          {% if videos.has_next %}
              &lt;a href="?page={{ videos.next_page_number }}"&gt;next&lt;/a&gt;
          {% endif %}
      &lt;/span&gt;
  &lt;/div&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>my file structure</p>
  
  <pre><code>video
     |-migrations
     |-static
     |-templates
          |-includes
          |-video
              |-detail.html
              |-index.html
  </code></pre>
  
  <p>How can I correct this to make this work? Any and all help is welcome. I have tried to modify what was in the docs to suit my needs but I don't know where I'm going wrong at.</p>