0

I'm searching for a method to notify an user if another user liked his/her post. For example instagram is giving you an alert: "this_user liked your post".

Is there a way to do with djangos integrated messages framework? So far I got the logic for like a post (simple post request). I want to send the notification to the author of the post so after post.save() method.

Someone know how to do?

Dariun
  • 327
  • 3
  • 14
  • I don't think this system is designed to send messages to a *different user.* I would create a database model to store the notifications. – Nick ODell Nov 04 '21 at 16:38
  • Hey check out this guy on youtube https://www.youtube.com/watch?v=_JKWYkz597c&list=PLPSM8rIid1a3TkwEmHyDALNuHhqiUiU5A&index=13 – Wazy Nov 05 '21 at 03:20

1 Answers1

1

You can't use messages framework for notify, messages works in request/response cycle. maybe onesignal is useful in your case.

onesignal-sdk is a python client library

Mukhtor Rasulov
  • 587
  • 3
  • 10