Questions tagged [django-syndication]
13 questions
5
votes
1 answer
How to reverse django feed url?
I've been searching for hours to try and figure this out, and it seems like no one has ever put an example online - I've just created a Django 1.2 rss feed view object and attached it to a url. When I visit the url, everything works great, so I know…

pivotal
- 736
- 6
- 16
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
2
votes
1 answer
Django syndication framework: How do I use the new class-based feed views?
Django 1.2 has brought in some changes in the syndication framework. According to this, I should now be able to do something like:
from django.conf.urls.defaults import *
from myproject.feeds import LatestEntries,…

Monika Sulik
- 16,498
- 15
- 50
- 52
2
votes
1 answer
Django simple syndication example gives: ImportError, cannot import name Feed
I'm trying to set up the simple syndication example from the Django docs, in a working project. But I'm getting an ImportError, even though I'm sure I've copied the example exactly.
Here's what I have in feeds.py:
from…

AP257
- 89,519
- 86
- 202
- 261
1
vote
3 answers
Django syndication framework: prevent appending SITE_ID to the links
According to the documentation here: https://djangobook.com/syndication-feed-framework/
If link doesn’t return the domain, the syndication framework will
insert the domain of the current site, according to your SITE_ID
setting
However, I'm…

Roy Tang
- 5,643
- 9
- 44
- 74
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 MRSS add item into item - using syndication feed framework
I'm using the syndication feed framework to generate an MRSS feed.
I was able to add a custom filed media:group inside the item element.
I'm looking how I can add media:content element inside media:group, here is the sample I would like to…

nick
- 31
- 1
- 6
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 return model and models related to this model with many-to-many relationships
I have two models. Comment and his "Subcomments":
class Comment(models.Model):
....
author = models.CharField(max_length=80)
published = models.DateTimeField(auto_now_add=True)
email = models.EmailField(blank=True)
url =…

bosha
- 69
- 1
- 10
0
votes
1 answer
Django double-escaping titles in podcasts
I'm using Django 1.2, and am having trouble generating good XML for a podcast. Any titles containing single-quotes, double-quotes or ampersands appear to be double-escaped, looking like this:
Podcast: "But we had…

Dominic Rodger
- 97,747
- 36
- 197
- 212
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…

SilverStrings024
- 45
- 8
0
votes
0 answers
Django syndication function error
I'm trying to create a custom Django RSS feed using django syndication (actually using django wagtail feeds). I have an error which I think I've identified as stemming from a NoneType object which is returned by the get_object() function inside…

KindOfGuy
- 3,081
- 5
- 31
- 47
0
votes
1 answer
Access User object when generating a feed in Django
I'm working on a website that keeps track of upcoming homework assignments. I'd like to provide an RSS/Atom Feed that shows their upcoming assignments. However, I have no idea how I'm going to limit the items in the feed to their own, as not many…

Cassie Meharry
- 2,633
- 3
- 20
- 20