title: pass queryset and retrieve in template
body: <p>Hate to ask such a simple question (I spent hours trying to solve it). I watched tons of tutorials and posts (also on this site) all explain the same thing but I can't access my data on the template. </p>
  
  <p>views.py </p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  from django.template import loader
  from django.views.generic import ListView, DetailView
  from .models import YTLink
  
  def ytlinks(request):
      queryset = YTLink.objects.all()
      return render(request, 'links/home.html', {'queryset':queryset}, content_type='application/xhtml+xml')
  </code></pre>
  
  <p>home.html</p>
  
  <pre><code>{% extends "links/header.html" %}
  
  {% block content %}
  
  {% if queryset %}
  queryset is filled
  {% else %}
  queryset is not filled
  {% endif %}
  
  &lt;br&gt; &lt;br&gt; &lt;br&gt;
  
  {% for ytlink in queryset %}
      &lt;a href="{{ ytlink.link }}"&gt;{{ ytlink.link }}&gt;&lt;/a&gt;&lt;br&gt;
  {% endfor %}
  </code></pre>
  
  <p>My queryset is never filled. What is wrong with this code?</p>