logo

Δ All posts

emailing django comments

27 September 2008

Rather than all the blah blah blah, here's the directory structure of yeago-email-comment.tar:

/ _ _ init _ _ .py <-- contains a signal firing the email after a comment is made /templates/ <-- a directory /templates/comments/ <-- another directory /templates/comments/email_comment_template.txt <-- the email which will be sent

The subject line is:

("%s - Comment on %s") % (site.name,comment.content_object)

What more could you possibly desire? Oh, I know I could make a subject.txt... but I've got to save something for 2.0 (slated April 2011).

Other nifty things:

  • You may set EMAIL_MODERATORS in your settings, or you may not (and it will use ADMINS)
  • The email is sent with a 'delete' link which will work. If you get weird problems redirecting TOO BAD this is django-comments-email, and it already did what it promised it would do.

In case you missed it, link to download yeago-email-comment.tar

Comments

bill says...

I couldn't find any contact info on your site other than your twitter username, so for lack of a better method I'm leaving an irrelevant comment (sorry).

Send me a message if you're interested in some work.

Posted at 1:51 p.m. on October 6, 2008

driguidax says...

<a href="http://www.veazeys.com/archives/000023.html">Hello</a> ! It's been a crazy week but we got back to classes today and all went well with our return http://www.veazeys.com/archives/000023.html , <a href=http://www.veazeys.com/archives/000023.html>yupiii</a>.

Posted at 7:13 p.m. on April 6, 2009

Essays

View all