The problem with the first is that users would get a bunch of single items whenever they were added to the DB. I need to give them a digest of what happened that week. I had thought of the range idea, but then you're hitting the DB every hour all week for a single update which doesn't sound correct. So i think i'll have a cron task just update a field in a table each week that the actual Feed view will pull from. It's still a db hit, but a very simple one.
On Jun 21, 6:15 pm, Andy McKay <a...@clearwind.ca> wrote: > On 2010-06-21, at 5:48 PM, TheIvIaxx wrote: > > > I was wondering how to create a weekly feed for django. Lets say i > > have a table of objects that gets added to all week long. I'd like to > > allow people to subscribe to a feed that would give a single update > > with all items that were added that week. Since the client doesn't > > send anything about when it last checked for updates, it's hard to > > determine if the requesting client needs to be given an update or not. > > A few points: > > - RSS readers keep track of all the things that have been read and don't > display duplicates, so I don't really see a need for doing this anyway > > - You maybe want a script that runs once a week and produces a summary post > of all the things entered that week, but that just gives you one item. > > - Or you just do a query that specifies the time range, eg: filter and only > show posts in the last seven days. > -- > Andy McKay, @andymckay > Django Consulting, Training and Support -- 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.