From 9e32fd0131c979b1ed663dbbc6dfc30af103a97c Mon Sep 17 00:00:00 2001 From: fergalmoran Date: Fri, 3 May 2013 15:27:25 +0100 Subject: [PATCH] Live testing of templates --- dss/settings.py | 1 + spa/models/userprofile.py | 1 + templates/notification/new_follower/full.txt | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dss/settings.py b/dss/settings.py index 90002cf..0f97bda 100644 --- a/dss/settings.py +++ b/dss/settings.py @@ -264,6 +264,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = localsettings.EMAIL_HOST EMAIL_PORT = localsettings.EMAIL_PORT +DEFAULT_FROM_EMAIL = 'chatbot@deepsouthsounds.com' if DEBUG: import mimetypes diff --git a/spa/models/userprofile.py b/spa/models/userprofile.py index 5553959..33cbc62 100644 --- a/spa/models/userprofile.py +++ b/spa/models/userprofile.py @@ -92,6 +92,7 @@ class UserProfile(_BaseModel): notification.send([self.user], "new_follower", {"profile": user}) except Exception, ex: self.logger.warning("Unable to send email for new follower") + self.logger.warning("Exception: %s" % ex.message) self.logger.warning("Host: %s" % settings.EMAIL_HOST) self.logger.warning("Port: %s" % settings.EMAIL_PORT) self.logger.warning("Backend: %s" % settings.EMAIL_BACKEND) diff --git a/templates/notification/new_follower/full.txt b/templates/notification/new_follower/full.txt index 02f3d1d..8ffcfba 100644 --- a/templates/notification/new_follower/full.txt +++ b/templates/notification/new_follower/full.txt @@ -1,3 +1 @@ -{% blocktrans %} {{ profile.get_nice_name }} has started following you. -{% endblocktrans %}