Commit 5f085fb6 authored by Matías Alarcón's avatar Matías Alarcón

sending mail from server

parent 36078084
Pipeline #7694 passed with stages
in 11 minutes and 44 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
......@@ -297,13 +300,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