title: Using feedparser/RSS, how do I pass the feed object from views.py to .html in django?
body: <p>I am trying to add a simple RSS parser to my web application. The objective is to grab an RSS channel and display news from it on a single page. I managed to do this for a single object, but can't do it for many objects (say, 10).</p>
  
  <p>The project assumes I have the files <code>views.py</code> and <code>RSS.html</code>.</p>
  
  <p>The following IS code which is working for one single parse object.</p>
  
  <p><code>views.py</code>:</p>
  
  <pre><code>import feedparser
  
  def rss(request):
      feeds = feedparser.parse("https://www.informationweek.com/rss_simple.asp")
      entry = feeds.entries[0]
      return render(
          request,
          'posts/rss.html',
          feeds={
              'title': entry.title,
              'published': entry.published,
              'summary': entry.summary,
              'link': entry.link,
              'image':entry.media_content[0]['url']
          }
      )
  </code></pre>
  
  <p><code>RSS.html</code>:</p>
  
  <pre><code>&lt;h3&gt;{{ title }}&lt;/h3&gt;
  &lt;i&gt;Date: {{ published }}&lt;p&gt;&lt;/i&gt;
  &lt;b&gt;Summary:&lt;/b&gt;&lt;p&gt; {{ summary }}&lt;p&gt;
  &lt;b&gt;Link:&lt;/b&gt;&lt;a href="{{ link }}"&gt; {{ link }}&lt;/a&gt;&lt;p&gt;
  &lt;b&gt;Image:&lt;/b&gt;&lt;p&gt;&lt;img src="{{ image }}"&gt;&lt;/img&gt;&lt;p&gt;
  </code></pre>
  
  <p>I don't understand how to pass all feeds into RSS.html.</p>
  
  <p>I try to pass it through views and it doesn't work.</p>
  
  <p>The following is code that does NOT work:</p>
  
  <p><code>views.py</code>:</p>
  
  <pre><code>return render(request, 'posts/rss.html', feeds)
  </code></pre>
  
  <p><code>RSS.html</code></p>
  
  <pre><code>{% for entry in feeds %}
      &lt;li&gt;&lt;a href="{{entry.link}}"&gt;{{entry.title}}&lt;/a&gt;&lt;/li&gt;
  {% endfor %}
  </code></pre>