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: &quot;But we had…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/django" class="post-tag grid--cell" title="show questions tagged 'django'" rel="tag">django</a> <a href="../../questions/tagged/itunes" class="post-tag grid--cell" title="show questions tagged 'itunes'" rel="tag">itunes</a> <a href="../../questions/tagged/podcast" class="post-tag grid--cell" title="show questions tagged 'podcast'" rel="tag">podcast</a> <a href="../../questions/tagged/django-syndication" class="post-tag grid--cell" title="show questions tagged 'django-syndication'" rel="tag">django-syndication</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 09 '11 at 22:55">asked May 09 '11 at 22:55</time> <a href="../../users/20972/dominic-rodger" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/20972.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Dominic Rodger" /> </a> <div class="s-user-card--info"> <a href="../../users/20972/dominic-rodger" class="s-user-card--link">Dominic Rodger</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">97,747</li> <li class="s-award-bling s-award-bling__gold" title="36 gold badges">36</li> <li class="s-award-bling s-award-bling__silver" title="197 silver badges">197</li> <li class="s-award-bling s-award-bling__bronze" title="212 bronze badges">212</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-57367314"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/57367314/how-to-access-data-in-get-context-data-rss-feed-django-2-2" class="question-hyperlink">How to access data in get_context_data RSS Feed django 2.2</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/django" class="post-tag grid--cell" title="show questions tagged 'django'" rel="tag">django</a> <a href="../../questions/tagged/django-views" class="post-tag grid--cell" title="show questions tagged 'django-views'" rel="tag">django-views</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/django-rss" class="post-tag grid--cell" title="show questions tagged 'django-rss'" rel="tag">django-rss</a> <a href="../../questions/tagged/django-syndication" class="post-tag grid--cell" title="show questions tagged 'django-syndication'" rel="tag">django-syndication</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 05 '19 at 23:56">asked Aug 05 '19 at 23:56</time> <a href="../../users/11420467/silverstrings024" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/11420467.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="SilverStrings024" /> </a> <div class="s-user-card--info"> <a href="../../users/11420467/silverstrings024" class="s-user-card--link">SilverStrings024</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">45</li> <li class="s-award-bling s-award-bling__bronze" title="8 bronze badges">8</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-47636246"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/47636246/django-syndication-function-error" class="question-hyperlink">Django syndication function error</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/python" class="post-tag grid--cell" title="show questions tagged 'python'" rel="tag">python</a> <a href="../../questions/tagged/django" class="post-tag grid--cell" title="show questions tagged 'django'" rel="tag">django</a> <a href="../../questions/tagged/wagtail" class="post-tag grid--cell" title="show questions tagged 'wagtail'" rel="tag">wagtail</a> <a href="../../questions/tagged/django-syndication" class="post-tag grid--cell" title="show questions tagged 'django-syndication'" rel="tag">django-syndication</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 04 '17 at 15:05">asked Dec 04 '17 at 15:05</time> <a href="../../users/770513/kindofguy" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/770513.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="KindOfGuy" /> </a> <div class="s-user-card--info"> <a href="../../users/770513/kindofguy" class="s-user-card--link">KindOfGuy</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,081</li> <li class="s-award-bling s-award-bling__gold" title="5 gold badges">5</li> <li class="s-award-bling s-award-bling__silver" title="31 silver badges">31</li> <li class="s-award-bling s-award-bling__bronze" title="47 bronze badges">47</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1495648"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1495648/access-user-object-when-generating-a-feed-in-django" class="question-hyperlink">Access User object when generating a feed in Django</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/django" class="post-tag grid--cell" title="show questions tagged 'django'" rel="tag">django</a> <a href="../../questions/tagged/authentication" class="post-tag grid--cell" title="show questions tagged 'authentication'" rel="tag">authentication</a> <a href="../../questions/tagged/django-syndication" class="post-tag grid--cell" title="show questions tagged 'django-syndication'" rel="tag">django-syndication</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 30 '09 at 00:54">asked Sep 30 '09 at 00:54</time> <a href="../../users/29145/cassie-meharry" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/29145.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Cassie Meharry" /> </a> <div class="s-user-card--info"> <a href="../../users/29145/cassie-meharry" class="s-user-card--link">Cassie Meharry</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,633</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="20 silver badges">20</li> <li class="s-award-bling s-award-bling__bronze" title="20 bronze badges">20</li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>