Archive for the 'FriendFeed' Category

A simple Django life stream

After reading Ryan Bergs' "The basics of creating a tumblelog with Django" (part1) and (part2), I realized that I wanted a similar tumblog/life stream but I didn't want to have to go through all the work of saving those objects to the database. After all, isn't all that data already stored in their respective systems. And since I am using FriendFeed, which is again duplicating all that data, I don't want to be duplicating it yet another time.

That's when the light bulb went off. Using the FriendFeed API and a bit of caching I can pull in my lifestream from FriendFeed using only a custom tag. So I came up with what I call lifefeed

Just add "lifefeed" to your installed apps and you can now do this from any template

{% load lifefeed %}{% load cache %}
{% cache 900 friendfeed %}
	{% lifefeed "YOUR FRIEND FEED USERNAME" %}
{% endcache %}
You can use the default friendfeed.html template that comes with lifefeed or use your own. You will most definitely want to use your own CSS to style the items since I am no CSS guru.

lifefeed is very simple right now but I would like to add more to it. Like

  • Consolidate duplicate twitter/pownce/brightkite posts
  • Display FriendFeed comments

To see an example of lifefeed in action check the sidebar on this page, you may have to scroll down a bit.

So what do you think?

Technorati Tags:



Powered by Django.