How to create a news feed like Facebook using Django, Tastypie, Redis and the task queue Gearman?

2k Views Asked by At

Can anyone recommend or create a tutorial on how to make a news feed similar to that of Facebook's only using Django, Tastypie (webservice API framework for Django), Redis (key-value store) and Gearman (task queue)?

Currently I have user model, post model, favorites model and a comment model. I have created Tastypie resources with these models to allow for favoriting, liking, commenting and posting.

I would like to know how to generate feed actions that apply directly to the user. For example:

User1 commented on your post. (2 seconds ago)
User2 liked your post. (3 mins ago)
User2 & User1 favorited your post (5 mins ago)

I really require in depth examples and tutorials on how to build an activity feed using the technologies above. Any help would be appreciated.

1

There are 1 best solutions below

3
msc On

You can create an activity stream with the app django-activity-stream.