title: Django. RSS feed
body: <p>I use standart django RSS:</p>
  
  <pre><code>from django.contrib.syndication.views import Feed
  
  class RSSFeed(Feed):
      title = "MyBlog"
  link = "/news/"
  description = "Last news:"
  item_link=link
  
      def items(self):
          return BlogPost.objects.all()[:10]
  
      def item_title(self, item): 
          return item.title
  
      def item_description(self, item):
          return item.description
  </code></pre>
  
  <p>urls:</p>
  
  <pre><code>(r'^feed/$', RSSFeed()),
  </code></pre>
  
  <p>As result I get <a href="http://mysite.com/news/" rel="nofollow">http://mysite.com/news/</a> for each post. How can I make unique link for each post? </p>
  
  <p>Posts have own urls:</p>
  
  <pre><code>url(r'^news/(?P&lt;slug&gt;[^\.]+).html', view_post, name='view_blog_post'),
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>def view_post(request, slug):
  return render_to_response('post.html', {
      'post': get_object_or_404(BlogPost, slug=slug),
  }, context_instance=RequestContext(request))
  </code></pre>