Questions tagged [django-rss]

12 questions
4
votes
2 answers

Django syndication: How do I avoid description escaping?

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 %}
Gonzalo Quero
  • 3,303
  • 18
  • 23
4
votes
2 answers

Django RSS Feed Problems

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…
f4nt
  • 2,661
  • 5
  • 31
  • 35
3
votes
2 answers

Django DRY Feeds

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:
Armando Pérez Marqués
  • 5,661
  • 4
  • 28
  • 45
2
votes
1 answer

Django RSS feed 500 error

I'm working on setting up an RSS feed for my Django-based blog. I'm getting 500 errors when I try and access the URL: $ curl -I http://172.16.91.140:8000/blogg/feeds/latest/ HTTP/1.0 500 INTERNAL SERVER ERROR WSGIServer is reporting nothing more…
Mark L
  • 12,405
  • 4
  • 28
  • 41
1
vote
2 answers

Django Generating RSS feed with description

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…
ismail
  • 3,882
  • 5
  • 36
  • 47
1
vote
1 answer

how to make RSS feeds where the /rss/ is at the end of the URL, not at the beginning?

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…
ria
  • 7,198
  • 6
  • 29
  • 35
1
vote
5 answers

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…
Net Citizen
  • 5,174
  • 8
  • 38
  • 50
0
votes
1 answer

Django RSS feed: any way to cache M2M relationship to display in item_title?

Example models Author and Book are linked via M2M. I've found a way to cache the relationship in items, but that doesn't really help because I need to display some info about Author in the Book feed: def item_title(self, item): return…
zerohedge
  • 3,185
  • 4
  • 28
  • 63
0
votes
1 answer

How to access data in get_context_data RSS Feed django 2.2

I'm trying to access the context dictionary that is returned by a modified 'get_context_data' function in the LatestVideosFeed so I can use it in a 'news feed' I'm trying to make because the context that is returned contains the author of the…
0
votes
1 answer

Reusing a Django RSS Feed for different Date Ranges

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 =…
nyxtom
  • 2,919
  • 2
  • 23
  • 24
0
votes
1 answer

Django Feeds/Syndication - The functions item_title and item_description do not effect whats displayed?

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…
Sean McCully
  • 1,122
  • 3
  • 12
  • 21
0
votes
1 answer

Django Syndication Framework

How to add images to rss feeds, here is my code snippets class ArticlesRss(Feed): description_template = 'feeds/city_description.html' def get_object(self, request, categoryid): if categoryid == 'all': return False …
Clr
  • 687
  • 7
  • 11