mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 11:10:12 +03:00
mailhog should work locally without docker
This commit is contained in:
parent
656fb69101
commit
5b743c1781
|
@ -27,6 +27,8 @@ SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!')
|
||||||
EMAIL_PORT = 1025
|
EMAIL_PORT = 1025
|
||||||
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
|
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
|
||||||
EMAIL_HOST = env("EMAIL_HOST", default='mailhog')
|
EMAIL_HOST = env("EMAIL_HOST", default='mailhog')
|
||||||
|
{% elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
|
||||||
|
EMAIL_HOST = 'localhost'
|
||||||
{% else %}
|
{% else %}
|
||||||
EMAIL_HOST = 'localhost'
|
EMAIL_HOST = 'localhost'
|
||||||
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user