开发者

How do I create a 'notify me of followup comments via e-mail' button in Django?

开发者 https://www.devze.com 2023-02-10 19:22 出处:网络
I want to create a check box that my users (either login or anonymous users) can click that sends an email when a new comment is added to a post. As a side note I would also like to send an em开发者_J

I want to create a check box that my users (either login or anonymous users) can click that sends an email when a new comment is added to a post. As a side note I would also like to send an em开发者_JAVA技巧ail to the Author of the post too. Thanks!


Use the django.contrib.comments.signals.comment_was_posted signal. For an example, see http://timothyfletcher.com/blog/django-comment-email-notifications/

0

精彩评论

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