title: Django looking for template that doesn't exist
body: <p>I made some major changes to my site and now when I click a specific link, it tries to go to a page that doesn't exist (rightfully so) but I can't find any reference to that non-existent page in my code so I can't direct it properly.</p>
  <p>views.py</p>
  <pre><code>from django.shortcuts import render
  from .models import BakingPost
  from django.views import generic
  
  
  def index(request):
      num_posts = BakingPost.objects.all().count()
      context = {
          'num_posts': num_posts,
      }
      return render(request, 'food_blog/index.html', context=context)
  
  
  class BakingListView(generic.ListView):
      model = BakingPost
      # paginate_by = 10
  
  
  class BakingDetailView(generic.DetailView):
      model = BakingPost
  </code></pre>
  <p>urls.py</p>
  <pre><code>from django.urls import path
  from . import views
  
  urlpatterns = [
      path('', views.index, name='index'),
      path('bakes/', views.BakingListView.as_view(), name='bakes'),
      path('bake/&lt;int:pk&gt;/', views.BakingDetailView.as_view(), name='bake_detail'),
      # path('post/new/', views.post_new, name='post_new'),
      # path('post/&lt;int:pk&gt;/edit/', views.post_edit, name='post_edit'),
  ]
  </code></pre>
  <p>navbar.html</p>
  <pre><code>&lt;nav&gt;
    &lt;div id=&quot;div_navbar&quot;&gt;
      &lt;ul class=&quot;ul_navbar&quot;&gt;
        &lt;li class=&quot;li_navbar&quot;&gt;
          &lt;a class=&quot;a_navbar&quot; href=&quot;{% url 'index' %}&quot;&gt;Home&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class=&quot;li_navbar&quot;&gt;
          &lt;a class=&quot;a_navbar&quot; href=&quot;{% url 'bakes' %}&quot;&gt;Baking List&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  <p>bake_list.html</p>
  <pre><code>{% extends 'food_blog/base.html' %}
  {% block content %}
      &lt;h1&gt;Baking List&lt;/h1&gt;
      {% if bake_list %}
      &lt;ul&gt;
          {% for bake in bake_list %}
              &lt;li&gt;
                  &lt;a href=&quot;{{ bake.get_absolute_url }}&quot;&gt;{{ bake.title }}&lt;/a&gt; ({{bake.author}})
              &lt;/li&gt;
          {% endfor %}
      &lt;/ul&gt;
      {% else %}
          &lt;p&gt;Nothing in the oven&lt;/p&gt;
      {% endif %}
  {% endblock %}
  </code></pre>
  <p>When I click on &quot;Baking List&quot; on the navbar on my homepage, it errors out saying &quot;TemplateDoesNotExist at /bakes/
  food_blog/bakingpost_list.html&quot;. The error is correct, that file doesn't exist anywhere but I'm not sure why it's looking for bakingpost_list.html. I created that file and then renamed it to bake_list.html and I thought I caught all references to it in views.py and urls.py. I still haven't found anything in my code that points to &quot;bakingpost_list.html&quot;. Struggling to figure out if this error means something else.</p>
  <p>I tried to change the Template directory in settings.py like some other posts suggested but that didn't work and I don't think this is the same issue. Django is able to find everything else that is in the Templates directory.</p>
  <p>For fun , I created a new file &quot;bakingpost_list.html&quot; in the same templates directory as all my other html files and it loads that page fine. So I'm assuming somewhere I've forgotten to stop referencing that file.</p>