Django simple syndication example gives: ImportError, cannot import name Feed
Posted
by AP257
on Stack Overflow
See other posts from Stack Overflow
or by AP257
Published on 2010-04-08T18:58:25Z
Indexed on
2010/04/08
19:13 UTC
Read the original article
Hit count: 510
django
|django-syndication
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 urls.py:
from election.feeds import LatestEntriesFeed
#... further down, at the appropriate line...
# RSS feed
(r'^feed/$', LatestEntriesFeed()),
But Django says it can't import the Feed class from django.contrib.syndication.views:
ImportError at /feed/
cannot import name Feed
....feeds.py in <module>
from django.contrib.syndication.views import Feed
Any ideas? I'm baffled!
© Stack Overflow or respective owner