mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-13 00:14:52 +03:00
replacing use_mailhog conditions
This commit is contained in:
parent
36e22d7d0b
commit
563f43cbd2
2
{{cookiecutter.project_slug}}/.gitignore
vendored
2
{{cookiecutter.project_slug}}/.gitignore
vendored
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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: []
|
||||
|
|
Loading…
Reference in New Issue
Block a user