From 1f41fdcfc2e44951092e0da0a0d813a26a4de52a Mon Sep 17 00:00:00 2001 From: Eliseu Egewarth Date: Thu, 10 Aug 2017 11:36:55 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20#741=20Adiciona=20configura=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20EMAIL=5FBACKEND=20(#1382)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eliseu Egewarth --- sapl/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sapl/settings.py b/sapl/settings.py index 0905edb1b..903b38b6a 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -39,7 +39,10 @@ ALLOWED_HOSTS = ['*'] LOGIN_REDIRECT_URL = '/' LOGIN_URL = '/login/?next=' -EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +if DEBUG: + EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +else: + EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # SAPL business apps in dependency order