Hi!

I want to create RSS2 feed. I read the doc
http://www.djangoproject.com/documentation/0.96/syndication_feeds/

So created a class

# coding: utf-8
from django.contrib.syndication.feeds import Feed
from articleManager.models import Article as article


class LatestEntries(Feed):
    title = 'TITLE'
    link = 'http://example.com'
    description = "DESCRIPTION HERE"



    def items(self):
        return article.objects.order_by("-pub_date")[:10]


But I need to add 2 custom attributes to my feed:
1. image_logo - need to add an image logo of my site
2. fulltext - a full text of an article (from my model)

Is there a way I can do it?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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