I am using Django's contrib.comments and want to know the following.
Can any utilities or app that can be plugged into an app that sends you an alert when a comment is posted on an image?
I did not really work with the signal, so please be a bit descriptive.
This is what came with me. From Django.contrib.comments.signals import comment_was_posted django.core.mail import send_mail if in "notification" Settings.INSTALLED_APPS: NOTIFICATION NOTIFICATION DIF comment by notification import model: user = request.user message = "123" Notification send ([user], "new comment", {'message': message,}) comment_was_posted Connect (comment_notification)
connect from django.contrib.comments.signals.comment_was_posted
to .models.send () as appropriate.
Comments
Post a Comment