5

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.

ekms
  • 51
  • 2

4 Answers4

5

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.

Yang.Y
  • 2,028
  • 1
  • 14
  • 8
  • I'm trying to use your app. When UserA creates something, I want to notify UserB, how do I do that? – César Dec 28 '12 at 15:31
  • use `recipient` Such as `notify.send(userA, recipient=userB, verb=u'created', action_object=something, target=destination)` – John Pang Dec 11 '14 at 19:04
1

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.

Elf Sternberg
  • 16,129
  • 6
  • 60
  • 68
  • umm I currently use Django activity stream for, well, just it, do a stream of the things that the user is interested on. I didn't think that could be possible do what I want to do with it. Maybe it's possible, but then I have to sepparate the feed of actions that interest the user from the feed of notifications.... – ekms Jun 23 '11 at 21:04
  • I'm using django-notifications but the documentation is quite brief. So I looked into django-activity-stream and found it is more useful, except it doesn't have the `recipient` field which I needed. I'm thinking either `upgrade` the django-notifications with the follow/following from DAS or the other way around. (sounds like no perfect solutions) – John Pang Dec 11 '14 at 19:08
0

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

Alp
  • 29,274
  • 27
  • 120
  • 198
0

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

any experience with that?

ekms
  • 51
  • 2