diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py index ff21678cf..efbaf30b2 100644 --- a/{{cookiecutter.project_slug}}/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/config/settings/local.py @@ -4,6 +4,8 @@ Local settings - Run in Debug mode {% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %} - Use mailhog for emails +{% elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %} +- Use mailhog for emails {% else %} - Use console backend for emails {% endif %} @@ -30,6 +32,8 @@ SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!') EMAIL_PORT = 1025 {% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %} EMAIL_HOST = env('EMAIL_HOST', default='mailhog') +{% elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %} +EMAIL_HOST = 'localhost' {% else %} EMAIL_HOST = 'localhost' EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',