I finally got the balls to put some of my code out there. This simple app allows for “e-mail this to a friend” functionality for any instance of any model in your Django database. If it sounds interesting, check it out. I’d love feedback. As you know, I’m a designer first, coder second, so I’m quite sure some of my code is not as optimal as it could be. Hopefully someone will find it useful.

Visit site:

http://code.google.com/p/django-mailfriend/

Comments

  1. 001 // Greg // 08.22.2008 // 7:27 AM

    Looks great! There’s a line at mailfriend/templatetags/mailfriend.py that looks suspicious though:

    return reverse('savoy.contrib.mailfriend.views...

    Shouldn’t that read:

    return reverse('mailfriend.views...

    Cheers! Greg

  2. 002 // Jeff Croft // 08.22.2008 // 9:30 AM

    Whoops. Indeed. I missed a spot as I refactored the app out of Savoy and into something generic. I fixed it. :) Thanks!

Post your comment