title: Basic Django Feeds
body: <p>I am a beginner. I want to add a RSS function to my blog. It shows an RSS page but it shows no entries. I don't know why. My <code>urls.py</code> is:</p>
  
  <pre><code>feeds = {'latest': PostAtomFeed, }
  
  ...
  
  url(r'^feeds/(?P&lt;url&gt;.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
  </code></pre>
  
  <p>And <code>feeds.py</code>:</p>
  
  <pre><code>from django.contrib.syndication.feeds import Feed
  from myproject.myblog.models import Blog
  from django.contrib.sites.models import get_current_site
  from django.utils.feedgenerator import Atom1Feed
  
  class PostRssFeed(Feed):
      title = "Run and Hide"
      description = "Latest Blog Entries"
      link = 'http://' + get_current_site(None).domain + '/blog/'
  
      def items(self):
          return Blog.objects.all().order_by('-pub_date')[:10]
  
      def item_title(self, item):
          return item.title
  
      def item_description(self, item):
          return item.description
  
  class PostAtomFeed(PostRssFeed):
      feed_type = Atom1Feed
      subtitle = PostRssFeed.description
  </code></pre>
  
  <p>My blog entry address is like this: <code>http://127.0.0.1:8000/blog/1/</code></p>
  
  <p>But when I go to <code>http://127.0.0.1:8000/feeds/latest/</code>, I get this:</p>
  
  <p><img src="https://i.stack.imgur.com/DzVrt.png" alt="Screenshot"></p>
  
  <p>I really don't know how to fix it. Any ideas?</p>