Created a feed using the syndication tutorial on the main Django
website... acutally I used the one that powers the feed from the
Django weblog.

from django.contrib.syndication.feeds import Feed
from avalonstar.blogs.models import Entry
import datetime

class LatestEntries(Feed):
    author_name    = "Bryan Veloso"
    author_email   = "xxx"
    title          = "Avalonstar"
    link           = "http://avalonstar.com";
    description    = "The latest from Avalonstar, the home of Bryan
Veloso."

    def items(self):
        return
Entry.objects.filter(pub_date__lte=datetime.datetime.now())[:10]

But when I try to use this in a feed reader, the publish date is
always the date and time the feed was updated, rather than when the
post was created. When I tried to import posts into Virb, it gave the
old 12/31/69 date. I tried to use item_date(self), but that didn't
seem to work the way I wanted it to.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to