Commit b31d5b39 authored by Matías Felipe Alarcón Poblete's avatar Matías Felipe Alarcón Poblete

Merge branch 'send-email-from-server-test' into 'develop'

Send email from server test

See merge request !19
parents c6bcb6b1 a8d1974b
Pipeline #7715 passed with stages
in 11 minutes and 28 seconds
......@@ -112,6 +112,7 @@ deploy.sh
# mediafiles
mediafiles/
staticfiles/
# vscode
.vscode/
\ No newline at end of file
......@@ -27,6 +27,9 @@ elif 'CI' in os.environ:
else:
local_settings = import_module('project.local_settings')
# print('LOCAL SETTING: ')
# print(local_settings)
DEBUG = local_settings.DEBUG
LOCAL_DATABASES = local_settings.LOCAL_DATABASES
LOCALLY_INSTALLED_APPS = local_settings.LOCALLY_INSTALLED_APPS
......@@ -300,13 +303,16 @@ if 'DOCKER' not in os.environ:
# The default is to use the SMTP backend.
# Third-party backends can be specified by providing a Python path
# to a module that defines an EmailBackend class.
if DEBUG or not ENABLE_EMAILS or TEST:
if not ENABLE_EMAILS:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
else:
EMAIL_BACKEND = get_local_value(
'EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend',
)
# print("ENABLED EMAILS: ")
# print(ENABLE_EMAILS)
print("system email backenc seleted: " + EMAIL_BACKEND)
# Password validation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment