Browse Source

Fix #741 Adiciona configuração de EMAIL_BACKEND (#1382)

Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1383/head
Eliseu Egewarth 7 years ago
committed by Edward
parent
commit
1f41fdcfc2
  1. 3
      sapl/settings.py

3
sapl/settings.py

@ -39,6 +39,9 @@ ALLOWED_HOSTS = ['*']
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login/?next=' LOGIN_URL = '/login/?next='
if DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
else:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

Loading…
Cancel
Save