mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-20 06:54:22 +00:00
Live testing of templates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
{% blocktrans %}
|
||||
<a href="{{ profile.get_absolute_url }}">{{ profile.get_nice_name }}</a> has started following you.
|
||||
{% endblocktrans %}
|
||||
|
||||
Reference in New Issue
Block a user