code: def blog_post_feed(request, format, **kwargs):
      
      try:
          return {"rss": PostsRSS, "atom": PostsAtom}[format](**kwargs)(request)
      except KeyError:
          raise Http404()
docs: Blog posts feeds - maps format to the correct feed view.