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 ...
I'm working on a blogging application, and trying to made just a simple RSS feed system function. However, I'm running into an odd bug that doesn't make a lot of sense to me. I understand what's likely going on, but I don't understand why. My RSS Feed class is below:
class RSSFeed(Feed):
title = settings.BLOG_NAME
description = ...
Hello. I'm trying to make a webcomic RSS feed with Django, but I can't put an image in the description field, because the html code gets escaped, even if it's in an {% autoescape off %} block.
Here is my description template:
{% autoescape off %}
<img src="{{obj.img.url}}"/>
{% endautoescape %}
And this is the result:
<img src="h...
http://docs.djangoproject.com/en/dev/ref/contrib/syndication/ describes the way to use the Feeds class, and it works well for me, but it requires the URL to be like http://example.com/rss/feedid/parameters/
I need it to be http://example.com/feedid/parameters/rss/
How to do that?
...
Hey Guys,
I am trying to generate a full rss feed, however when loading the feed in Mail, it just shows the title, with a read more link at the bottom. I have tried several different options. But none seem to work.
I would like to generate the feed with a combination of several feeds in my modl.
Here is the code i have tried:
class...
I'm using the Django Feeds Framework and it's really nice, very intuitive and easy to use. But, I think there is a problem when creating links to feeds in HTML.
For example:
<link rel="alternate" type="application/rss+xml" title="{{ feed_title }}" href="{{ url_of_feed }}" />
Link's HREF attribute can be easily found out, just use rev...
Ive defined a a class that inherits from django.contrib.syndication.feeds.Feed
class Rss(Feed):
...
def item_title(self, item):
return "Hello"
def item_description(self, item):
return "Test"
The issue is whats returned from the methods item_title and item_description is not what is used in the feed, even when no...
What would be a way to have date range based rss feeds in Django. For instance if I had the following type of django rss feed model.
from django.contrib.syndication.feeds import Feed
from myapp.models import *
class PopularFeed(Feed):
title = '%s : Latest SOLs' % settings.SITE_NAME
link = '/'
description = 'Latest entries t...