I am utilizing django.contrib.comments to create an email message for each comment posted on my site. In moderation.py there is a method - def email(self, comment, content_object, request): """ Send email notification of a new comment to site staff when email notifications have been requested. """ if not self.email_notification: return recipient_list = [manager_tuple[1] for manager_tuple in settings.MANAGERS] t = loader.get_template('comments/ comment_notification_email.txt') c = RequestContext(request, { 'comment': comment, 'content_object': content_object }) subject = "New comment posted about %s" % (#Site.objects.get_current().name, content_object) message = t.render(c) send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, recipient_list, fail_silently=True)
The problem is that comment_notification_email.txt never gets filled with the rendered message, and thus nothing goes in the message body. I'm stumpted... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.