-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix certificate email not sent (#1434)
- Loading branch information
1 parent
fdef5c9
commit 092c98b
Showing
2 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"""Configuration for production server.""" | ||
# noinspection PyUnresolvedReferences | ||
from .prod import * # noqa | ||
import ast | ||
import os | ||
print(os.environ) | ||
|
||
|
@@ -28,16 +29,20 @@ | |
} | ||
|
||
|
||
# See fig.yml file for postfix container definition | ||
# | ||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' | ||
# Host for sending e-mail. | ||
EMAIL_HOST = 'smtp' | ||
# Port for sending e-mail. | ||
EMAIL_PORT = 25 | ||
# SMTP authentication information for EMAIL_HOST. | ||
# See fig.yml for where these are defined | ||
EMAIL_HOST_USER = '[email protected]' | ||
EMAIL_HOST_PASSWORD = 'docker' | ||
EMAIL_USE_TLS = False | ||
EMAIL_SUBJECT_PREFIX = '[PROJECTA]' | ||
EMAIL_BACKEND = os.environ.get( | ||
'EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend') | ||
EMAIL_HOST = os.environ.get( | ||
'EMAIL_HOST', 'smtp') | ||
EMAIL_HOST_USER = os.environ.get( | ||
'EMAIL_HOST_USER', '[email protected]') | ||
EMAIL_HOST_PASSWORD = os.environ.get( | ||
'EMAIL_HOST_PASSWORD', 'docker') | ||
EMAIL_PORT = os.environ.get( | ||
'EMAIL_PORT', 'True') | ||
EMAIL_SUBJECT_PREFIX = os.environ.get( | ||
'EMAIL_SUBJECT_PREFIX', '[PROJECTA]') | ||
EMAIL_USE_TLS = ast.literal_eval(os.environ.get( | ||
'EMAIL_USE_TLS', 'True')) | ||
EMAIL_USE_SSL = ast.literal_eval(os.environ.get( | ||
'EMAIL_USE_SSL', 'False')) | ||
|