Django: RSS and ATOM feeds Content-Type header? -


I went along with Django's RSS and ATOm feed and I had to do this work.

However, the development development server downloads the browser as a XML document rather than a browser rather than a browser.

My experience with HTTP tells that there is no mixed type in the content-type header

How do I specify it in the Django?

There is a comment in this about every block source code.

They define a class, which changes the MIME type of the standard Django feed like:

  # RSS feed Powered by Jengo syndication framework Maimim type # ' Application / RSS + xml 'This is unacceptable to us, because that MIME type # prompts users to download feeds in some browsers, which is misleading. #here, we set the MIME type so that it is not such a prompt. Class Shimimtaipfid (Rups 201 rev2Feed): mime_type = 'application / xml' # This is a Dijanka. Contrib.syndication.feeds.Feed subclass whose feed_type # Set our favorite MIME type class Ibubfeed (feed): feed_type = Shimimtaipfid  < / Pre> 

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -