mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-21 17:16:51 +03:00
Rename SendInBlue ESP to Brevo (#5094)
* Update cookiecutter.json with Brevo for SendInBlue * Change all occurrences of SendinBlue to Brevo
This commit is contained in:
parent
4bdc239e03
commit
a0c2e1f31f
|
@ -147,7 +147,7 @@ Answer the prompts with your own desired [options](http://cookiecutter-django.re
|
||||||
4 - Mandrill
|
4 - Mandrill
|
||||||
5 - Postmark
|
5 - Postmark
|
||||||
6 - Sendgrid
|
6 - Sendgrid
|
||||||
7 - SendinBlue
|
7 - Brevo (formerly SendinBlue)
|
||||||
8 - SparkPost
|
8 - SparkPost
|
||||||
9 - Other SMTP
|
9 - Other SMTP
|
||||||
Choose from 1, 2, 3, 4, 5, 6, 7, 8, 9 [1]: 1
|
Choose from 1, 2, 3, 4, 5, 6, 7, 8, 9 [1]: 1
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"Mandrill",
|
"Mandrill",
|
||||||
"Postmark",
|
"Postmark",
|
||||||
"Sendgrid",
|
"Sendgrid",
|
||||||
"SendinBlue",
|
"Brevo",
|
||||||
"SparkPost",
|
"SparkPost",
|
||||||
"Other SMTP"
|
"Other SMTP"
|
||||||
],
|
],
|
||||||
|
|
|
@ -91,7 +91,7 @@ mail_service:
|
||||||
4. Mandrill_
|
4. Mandrill_
|
||||||
5. Postmark_
|
5. Postmark_
|
||||||
6. SendGrid_
|
6. SendGrid_
|
||||||
7. SendinBlue_
|
7. `Brevo (formerly SendinBlue)`_
|
||||||
8. SparkPost_
|
8. SparkPost_
|
||||||
9. `Other SMTP`_
|
9. `Other SMTP`_
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ debug:
|
||||||
.. _Mandrill: http://mandrill.com
|
.. _Mandrill: http://mandrill.com
|
||||||
.. _Postmark: https://postmarkapp.com
|
.. _Postmark: https://postmarkapp.com
|
||||||
.. _SendGrid: https://sendgrid.com
|
.. _SendGrid: https://sendgrid.com
|
||||||
.. _SendinBlue: https://www.sendinblue.com
|
.. _Brevo (formerly SendinBlue): https://www.brevo.com
|
||||||
.. _SparkPost: https://www.sparkpost.com
|
.. _SparkPost: https://www.sparkpost.com
|
||||||
.. _Other SMTP: https://anymail.readthedocs.io/en/stable/
|
.. _Other SMTP: https://anymail.readthedocs.io/en/stable/
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,8 @@ SENDGRID_API_KEY SENDGRID_API_KEY n/a
|
||||||
SENDGRID_GENERATE_MESSAGE_ID True n/a raises error
|
SENDGRID_GENERATE_MESSAGE_ID True n/a raises error
|
||||||
SENDGRID_MERGE_FIELD_FORMAT None n/a raises error
|
SENDGRID_MERGE_FIELD_FORMAT None n/a raises error
|
||||||
SENDGRID_API_URL n/a n/a "https://api.sendgrid.com/v3/"
|
SENDGRID_API_URL n/a n/a "https://api.sendgrid.com/v3/"
|
||||||
SENDINBLUE_API_KEY SENDINBLUE_API_KEY n/a raises error
|
BREVO_API_KEY BREVO_API_KEY n/a raises error
|
||||||
SENDINBLUE_API_URL n/a n/a "https://api.sendinblue.com/v3/"
|
BREVO_API_URL n/a n/a "https://api.brevo.com/v3/"
|
||||||
SPARKPOST_API_KEY SPARKPOST_API_KEY n/a raises error
|
SPARKPOST_API_KEY SPARKPOST_API_KEY n/a raises error
|
||||||
SPARKPOST_API_URL n/a n/a "https://api.sparkpost.com/api/v1"
|
SPARKPOST_API_URL n/a n/a "https://api.sparkpost.com/api/v1"
|
||||||
======================================= =========================== ============================================== ======================================================================
|
======================================= =========================== ============================================== ======================================================================
|
||||||
|
|
|
@ -73,7 +73,7 @@ SUPPORTED_COMBINATIONS = [
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Mandrill"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Mandrill"},
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Postmark"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Postmark"},
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Sendgrid"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Sendgrid"},
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "SendinBlue"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Brevo"},
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "SparkPost"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "SparkPost"},
|
||||||
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Other SMTP"},
|
{"cloud_provider": "None", "use_whitenoise": "y", "mail_service": "Other SMTP"},
|
||||||
# Note: cloud_provider=None AND use_whitenoise=n is not supported
|
# Note: cloud_provider=None AND use_whitenoise=n is not supported
|
||||||
|
@ -83,7 +83,7 @@ SUPPORTED_COMBINATIONS = [
|
||||||
{"cloud_provider": "AWS", "mail_service": "Mandrill"},
|
{"cloud_provider": "AWS", "mail_service": "Mandrill"},
|
||||||
{"cloud_provider": "AWS", "mail_service": "Postmark"},
|
{"cloud_provider": "AWS", "mail_service": "Postmark"},
|
||||||
{"cloud_provider": "AWS", "mail_service": "Sendgrid"},
|
{"cloud_provider": "AWS", "mail_service": "Sendgrid"},
|
||||||
{"cloud_provider": "AWS", "mail_service": "SendinBlue"},
|
{"cloud_provider": "AWS", "mail_service": "Brevo"},
|
||||||
{"cloud_provider": "AWS", "mail_service": "SparkPost"},
|
{"cloud_provider": "AWS", "mail_service": "SparkPost"},
|
||||||
{"cloud_provider": "AWS", "mail_service": "Other SMTP"},
|
{"cloud_provider": "AWS", "mail_service": "Other SMTP"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "Mailgun"},
|
{"cloud_provider": "GCP", "mail_service": "Mailgun"},
|
||||||
|
@ -91,7 +91,7 @@ SUPPORTED_COMBINATIONS = [
|
||||||
{"cloud_provider": "GCP", "mail_service": "Mandrill"},
|
{"cloud_provider": "GCP", "mail_service": "Mandrill"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "Postmark"},
|
{"cloud_provider": "GCP", "mail_service": "Postmark"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "Sendgrid"},
|
{"cloud_provider": "GCP", "mail_service": "Sendgrid"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "SendinBlue"},
|
{"cloud_provider": "GCP", "mail_service": "Brevo"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "SparkPost"},
|
{"cloud_provider": "GCP", "mail_service": "SparkPost"},
|
||||||
{"cloud_provider": "GCP", "mail_service": "Other SMTP"},
|
{"cloud_provider": "GCP", "mail_service": "Other SMTP"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "Mailgun"},
|
{"cloud_provider": "Azure", "mail_service": "Mailgun"},
|
||||||
|
@ -99,7 +99,7 @@ SUPPORTED_COMBINATIONS = [
|
||||||
{"cloud_provider": "Azure", "mail_service": "Mandrill"},
|
{"cloud_provider": "Azure", "mail_service": "Mandrill"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "Postmark"},
|
{"cloud_provider": "Azure", "mail_service": "Postmark"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "Sendgrid"},
|
{"cloud_provider": "Azure", "mail_service": "Sendgrid"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "SendinBlue"},
|
{"cloud_provider": "Azure", "mail_service": "Brevo"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "SparkPost"},
|
{"cloud_provider": "Azure", "mail_service": "SparkPost"},
|
||||||
{"cloud_provider": "Azure", "mail_service": "Other SMTP"},
|
{"cloud_provider": "Azure", "mail_service": "Other SMTP"},
|
||||||
# Note: cloud_providers GCP, Azure, and None
|
# Note: cloud_providers GCP, Azure, and None
|
||||||
|
|
|
@ -28,8 +28,8 @@ POSTMARK_SERVER_TOKEN=
|
||||||
SENDGRID_API_KEY=
|
SENDGRID_API_KEY=
|
||||||
SENDGRID_GENERATE_MESSAGE_ID=True
|
SENDGRID_GENERATE_MESSAGE_ID=True
|
||||||
SENDGRID_MERGE_FIELD_FORMAT=None
|
SENDGRID_MERGE_FIELD_FORMAT=None
|
||||||
{% elif cookiecutter.mail_service == 'SendinBlue' %}
|
{% elif cookiecutter.mail_service == 'Brevo' %}
|
||||||
SENDINBLUE_API_KEY=
|
BREVO_API_KEY=
|
||||||
{% elif cookiecutter.mail_service == 'SparkPost' %}
|
{% elif cookiecutter.mail_service == 'SparkPost' %}
|
||||||
SPARKPOST_API_KEY=
|
SPARKPOST_API_KEY=
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -276,12 +276,12 @@ ANYMAIL = {
|
||||||
"SENDGRID_API_KEY": env("SENDGRID_API_KEY"),
|
"SENDGRID_API_KEY": env("SENDGRID_API_KEY"),
|
||||||
"SENDGRID_API_URL": env("SENDGRID_API_URL", default="https://api.sendgrid.com/v3/"),
|
"SENDGRID_API_URL": env("SENDGRID_API_URL", default="https://api.sendgrid.com/v3/"),
|
||||||
}
|
}
|
||||||
{%- elif cookiecutter.mail_service == 'SendinBlue' %}
|
{%- elif cookiecutter.mail_service == 'Brevo' %}
|
||||||
# https://anymail.readthedocs.io/en/stable/esps/sendinblue/
|
# https://anymail.readthedocs.io/en/stable/esps/brevo/
|
||||||
EMAIL_BACKEND = "anymail.backends.sendinblue.EmailBackend"
|
EMAIL_BACKEND = "anymail.backends.brevo.EmailBackend"
|
||||||
ANYMAIL = {
|
ANYMAIL = {
|
||||||
"SENDINBLUE_API_KEY": env("SENDINBLUE_API_KEY"),
|
"BREVO_API_KEY": env("BREVO_API_KEY"),
|
||||||
"SENDINBLUE_API_URL": env("SENDINBLUE_API_URL", default="https://api.sendinblue.com/v3/"),
|
"BREVO_API_URL": env("BREVO_API_URL", default="https://api.brevo.com/v3/"),
|
||||||
}
|
}
|
||||||
{%- elif cookiecutter.mail_service == 'SparkPost' %}
|
{%- elif cookiecutter.mail_service == 'SparkPost' %}
|
||||||
# https://anymail.readthedocs.io/en/stable/esps/sparkpost/
|
# https://anymail.readthedocs.io/en/stable/esps/sparkpost/
|
||||||
|
|
|
@ -35,8 +35,8 @@ django-anymail[mandrill]==10.3 # https://github.com/anymail/django-anymail
|
||||||
django-anymail[postmark]==10.3 # https://github.com/anymail/django-anymail
|
django-anymail[postmark]==10.3 # https://github.com/anymail/django-anymail
|
||||||
{%- elif cookiecutter.mail_service == 'Sendgrid' %}
|
{%- elif cookiecutter.mail_service == 'Sendgrid' %}
|
||||||
django-anymail[sendgrid]==10.3 # https://github.com/anymail/django-anymail
|
django-anymail[sendgrid]==10.3 # https://github.com/anymail/django-anymail
|
||||||
{%- elif cookiecutter.mail_service == 'SendinBlue' %}
|
{%- elif cookiecutter.mail_service == 'Brevo' %}
|
||||||
django-anymail[sendinblue]==10.3 # https://github.com/anymail/django-anymail
|
django-anymail[brevo]==10.3 # https://github.com/anymail/django-anymail
|
||||||
{%- elif cookiecutter.mail_service == 'SparkPost' %}
|
{%- elif cookiecutter.mail_service == 'SparkPost' %}
|
||||||
django-anymail[sparkpost]==10.3 # https://github.com/anymail/django-anymail
|
django-anymail[sparkpost]==10.3 # https://github.com/anymail/django-anymail
|
||||||
{%- elif cookiecutter.mail_service == 'Other SMTP' %}
|
{%- elif cookiecutter.mail_service == 'Other SMTP' %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user