Search code examples
djangodjango-urlsdjango-rssdjango-syndication

Django: RSS and ATOM feeds Content-Type header?


I followed along this tutorial for django's RSS and ATOM feeds and I got it to work.

However the test development server keeps making the browser download the feeds as a file instead of the browser detecting it as an xml document.

My experience with HTTP tells me that there is a missing mime type in the Content-Type header.

How do I specify that in django?


Solution

  • I guess the problem was with the Camino browser on OS X, not with the HTTP header and mime type.

    When I tried on Safari, it worked.