title: i am trying to pass the title form model to a template for nav dropdown but it is working in main html page but not showing others
body: <p>i am trying to create a nav dropdown that with the model titles but it is showing drop down on the main html page but it is not showing other pages and also i tried to make a one header html template in it also its is not showing the titles , so how can i pass the objects to multiple template </p>
  
  <p><strong>my template drop down</strong>:</p>
  
  <pre><code>&lt;li class="menu-has-children"&gt;&lt;a href="#services"&gt;All Services&lt;/a&gt;
    &lt;ul style="display: inline;"&gt;
      {% for detailinfo in detail.all %}
        &lt;li&gt;&lt;a href="{% url 'details' services.slug %}"&gt;{{ detailinfo.title }}&lt;/a&gt;&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><strong>my view</strong>:</p>
  
  <pre><code>def details(request, services_slug):
      q = services.objects.filter(slug=services_slug)
      if q.exists():
          q=q.first()
      else:
          return HttpResponse("&lt;h1&gt; page not found &lt;/h1&gt;")
  
      detail = {'detail': q}
  
      return render(request, 'detail.html', detail,)
  </code></pre>
  
  <p>i want to add these objects in detail page</p>
  
  <pre><code>def homepage(request):
  
  aboutinfo = aboutpage.objects
  servicesinfo = services.objects
  programinfo = prgm.objects
  
  return render(request, 'index.html', {'aboutinfo': aboutinfo, 'servicesinfo': servicesinfo, 'programinfo': programinfo})
  </code></pre>