Commit 645cf9da by Awais

ECOM-5435

Integrating django-ses for sending emails

Installing the django-ses from production.py.
Updating the required authentication variable for sending emails ( using discovery configuration ).
Add an example of required credentials in private.py.example.
parent e634129d
......@@ -2,3 +2,19 @@ SOCIAL_AUTH_EDX_OIDC_KEY = 'replace-me'
SOCIAL_AUTH_EDX_OIDC_SECRET = 'replace-me'
SOCIAL_AUTH_EDX_OIDC_URL_ROOT = 'http://127.0.0.1:8000/oauth'
SOCIAL_AUTH_EDX_OIDC_ID_TOKEN_DECRYPTION_KEY = SOCIAL_AUTH_EDX_OIDC_SECRET
# For default email backend following settings require
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
# For django-ses following credentials require for sending emails. For more details check the
# documentation https://github.com/django-ses/django-ses.
EMAIL_BACKEND = 'django_ses.SESBackend'
AWS_ACCESS_KEY_ID ='replace-me'
AWS_SECRET_ACCESS_KEY = 'replace-me'
AWS_SES_REGION_NAME = 'replace-me'
AWS_SES_REGION_ENDPOINT = 'replace-me'
......@@ -19,7 +19,7 @@ LOGGING['handlers']['local']['level'] = 'INFO'
# the values read from disk should UPDATE the pre-configured dicts.
DICT_UPDATE_KEYS = ('JWT_AUTH',)
# This may be overridden by the YAML in PROGRAMS_CFG, but it should be here as a default.
# This may be overridden by the YAML in DISCOVERY_CFG, but it should be here as a default.
MEDIA_STORAGE_BACKEND = {}
CONFIG_FILE = get_env_setting('COURSE_DISCOVERY_CFG')
......
......@@ -2,6 +2,7 @@
-r base.txt
certifi==2016.8.8
django-ses==0.8.1
gevent==1.1.2
gunicorn==19.6.0
mysqlclient==1.3.7
......
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