简体   繁体   中英

Django - Send notification to user after new like

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM