On 6/13/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > On 6/13/06, James Bennett <[EMAIL PROTECTED]> wrote: > > > > On 6/12/06, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > > > I suspect the difference is > > > due to different MIME type of these feeds --- I use 'application/xml', > > > which I believe is the correct one. > > > > application/rss+xml for RSS > > application/atom+xml for Atom > > > > Browsers should prompt to download on these types, or if you've > > configured a feed reader to handle them defer to the feed reader > > instead. > > So are those the MIME types that django is returning for rss feeds (in > other words, how do I find out what MIME type django is using for > these)? In that case and from what you are saying, firefox is doing > the correct thing in asking me where to save the file instead of just > displaying it?
Answer to my own question that I found by digging through the django code (which is much easier than I had anticipated!). The MIME type for each feed is set in the feedgenerator.py: http://code.djangoproject.com/browser/django/trunk/django/utils/feedgenerator.py And it sets them just as James indicates. That probably explains why firefox isn't displaying them like I wish. As for Eugene's example, firefox does display it, and confirms that the content-type header was application/xml. That isn't what django sets for Rss201rev2Feeds. Maybe, Eugene, you are overriding that somewhere in your code? Thanks, Bryan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

