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 ...
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...
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 feed readers support cookie-based sessions.
Basically, I need to access the request object...
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 django.contrib.syndication.views import Feed
class LatestEntriesFeed(Feed):
# etc
And here's what I have in url...
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, LatestEntriesByCategory
urlpatterns = patterns('',
# ...
(r'^feeds/latest/$', LatestEntries()),
(r'^feeds/categ...
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 my implementation of the feed class is OK.
The hitch is, I can't figure out how to link ...
Hi all,
I'm following the documentation at http://docs.djangoproject.com/en/1.2/ref/contrib/syndication/ quite closely, but I keep getting AttributeError: object has no attribute 'rindex' when implementing the following.
urls.py:
from django.conf.urls.defaults import *
from feedcreator.feeds import FeedPosts
urlpatterns += patterns('...