From 139b9ea8d0647f56f09f04fc8774f1d2b47a9664 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Fri, 24 Nov 2017 16:00:12 -0800 Subject: [PATCH] Use django email log --- pinaxcon/settings.py | 5 ++++- requirements/base.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index ed450c6..ef557aa 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -229,6 +229,8 @@ INSTALLED_APPS = [ # stylesheets and js 'compressor', + + 'email_log', ] # A sample logging configuration. The only tangible logging @@ -270,7 +272,8 @@ FIXTURE_DIRS = [ # Heroku: Get email configuration from environment variables. -EMAIL_BACKEND = os.environ.get("DJANGO_EMAIL_BACKEND", "django.core.mail.backends.console.EmailBackend") # noqa +EMAIL_BACKEND = "email_log.backends.EmailBackend" +EMAIL_LOG_BACKEND = os.environ.get("DJANGO_EMAIL_BACKEND", "django.core.mail.backends.console.EmailBackend") # noqa EMAIL_HOST = os.environ.get("DJANGO_EMAIL_HOST", "") EMAIL_PORT = int(os.environ.get("DJANGO_EMAIL_PORT", 25)) EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_HOST_USER", "") diff --git a/requirements/base.txt b/requirements/base.txt index 94f429e..a5d6b4e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -18,7 +18,7 @@ easy-thumbnails==2.4.1 django-timezone-field==2.0 django-model-utils==3.0.0 wiki==0.3b3 - +django-email-log==0.2.0 # For testing django-nose==1.4.4