So, I've tried install the django RSS app on my blog, but I'm not
going to get the blog objects retrieved by the RSS app.

The error that I'm getting when attempt to access the feeds URLs is
this:

http://www.catojo.com.br/feeds/latest/

And I'm not understand the 'why' this is happening.

I've a feeds.py configured in the following form:

class LatestFeed(Feed):

    def title(self, obj):
        return "My blog for %s" % obj.headline

    def link(self, obj):
        if not obj:
            raise FeedDoesNotExist
        return obj.get_absolute_url()

    def description(self, obj):
        return "Blog entries recently posted in category %s" %
obj.headline

    def items(self, obj):
        return Article.objects.order_by('slug=obj.slug')[:5]

URLS.py

site_feeds = {
    'latest': LatestFeed,
}

urlpatterns = patterns('',
        (r'^feeds/(?P<url>.*)/$',
'django.contrib.syndication.views.feed', {'feed_dict': site_feeds}),
)

and my articles have a slug like:

http://www.catojo.com.br/2010/01/22/activedirectory-windows2003-e-linux/

So, what I am doing wrong ?

Thank in advanced.

Felipe.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to