replacing use_mailhog conditions

This commit is contained in:
Vageeshan 2023-08-29 15:45:54 -07:00
parent 36e22d7d0b
commit 563f43cbd2
3 changed files with 7 additions and 7 deletions

View File

@ -329,7 +329,7 @@ tags
dump.rdb
### Project template
{%- if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
{%- if cookiecutter.use_mailpit == 'y' and cookiecutter.use_docker == 'n' %}
MailHog
{%- endif %}
{{ cookiecutter.project_slug }}/media/

View File

@ -25,12 +25,12 @@ CACHES = {
# EMAIL
# ------------------------------------------------------------------------------
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' -%}
{% if cookiecutter.use_mailpit == 'y' and cookiecutter.use_docker == 'y' -%}
# https://docs.djangoproject.com/en/dev/ref/settings/#email-host
EMAIL_HOST = env("EMAIL_HOST", default="mailpit")
# https://docs.djangoproject.com/en/dev/ref/settings/#email-port
EMAIL_PORT = 1025
{%- elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' -%}
{%- elif cookiecutter.use_mailpit == 'y' and cookiecutter.use_docker == 'n' -%}
# https://docs.djangoproject.com/en/dev/ref/settings/#email-host
EMAIL_HOST = "localhost"
# https://docs.djangoproject.com/en/dev/ref/settings/#email-port

View File

@ -16,7 +16,7 @@ services:
{%- if cookiecutter.use_celery == 'y' %}
- redis
{%- endif %}
{%- if cookiecutter.use_mailhog == 'y' %}
{%- if cookiecutter.use_mailpit == 'y' %}
- mailhog
{%- endif %}
volumes:
@ -55,7 +55,7 @@ services:
ports:
- '9000:9000'
command: /start-docs
{%- if cookiecutter.use_mailhog == 'y' %}
{%- if cookiecutter.use_mailpit == 'y' %}
mailpit:
image: axllent/mailpit:v1.8
@ -77,7 +77,7 @@ services:
depends_on:
- redis
- postgres
{%- if cookiecutter.use_mailhog == 'y' %}
{%- if cookiecutter.use_mailpit == 'y' %}
- mailhog
{%- endif %}
ports: []
@ -90,7 +90,7 @@ services:
depends_on:
- redis
- postgres
{%- if cookiecutter.use_mailhog == 'y' %}
{%- if cookiecutter.use_mailpit == 'y' %}
- mailhog
{%- endif %}
ports: []