update local settings to use mailhog container for docker

This commit is contained in:
shireenrao 2016-05-11 21:26:45 -04:00
parent 563239a2cb
commit 832a9e1488

View File

@ -23,8 +23,12 @@ SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!')
# Mail settings
# ------------------------------------------------------------------------------
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
{% if cookiecutter.use_docker == 'y' and cookiecutter.use_mailhog == 'y' %}
EMAIL_HOST = 'mailhog'
{% else %}
EMAIL_HOST = 'localhost'
{% endif %}
{%if cookiecutter.use_mailhog == 'n' -%}
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
default='django.core.mail.backends.console.EmailBackend')