开发者

IS there any Django app that notify the user about something that happened in your web, and ask him to perform an action?

I mean, there's any generic app that you can use to make notifications like when in Facebook, someone adds you as friend, or invite you to an event?

Basically, I need to show to the user this type of notification for different contents type, with the possibility to do 开发者_运维知识库some custom actions (ignore, accept, etc) different for each one.

I wonder if someone have done this before, so I can plug it and create a type of notification simply passing the text of the notification, the options that must show and the views to call for each option.

Thanks.


django-notifications is a GitHub notifications alike app, and it's based on Django Activity Stream.

If you familia with django-activity-stream, the the usage of django-notifications almost the same.

django-notifications also provide notifications_unread templatetag to display unread notifications of current login user.


Django Activity Stream does this, for the most part. It's a generic relationship manager that watches for save events in the datbase, and when a condition is met it puts an "event happened!" record into its own tables.

It would be incumbent upon you to then present that feed of events to the user, along with links to the actions (specific to your project) that you want him to take.

Even if it's not what you want, it's an excellent example of how to start.


Maybe this is more closer to my needs: django-notification https://github.com/jtauber/django-notification

any experience with that?


There is also django-notify: http://code.google.com/p/django-notify/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜