Live testing of templates

This commit is contained in:
fergalmoran
2013-05-03 15:27:25 +01:00
parent da5f75d282
commit 9e32fd0131
3 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -1,3 +1 @@
{% blocktrans %}
<a href="{{ profile.get_absolute_url }}">{{ profile.get_nice_name }}</a> has started following you.
{% endblocktrans %}