-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails : finaliser la configuration d'envoi d'-mails transactionnels avec Brevo #1033
Conversation
lemarche/utils/apis/api_brevo.py
Outdated
|
||
|
||
ENV_NOT_ALLOWED = ("dev", "test") | ||
def get_default_client(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je me rends compte qu'il y aura surement des conflits avec #1028
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
params=variables, | ||
) | ||
|
||
if settings.BITOUBI_ENV not in ENV_NOT_ALLOWED: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est fait comme ça partout, mais je pense qu'on peut avoir une réflexion sur ce ENV_NOT_ALLOWED
, pour peut-être le centraliser dans le settings et l'inverser pour éviter les erreurs (ENV_ALLOWED).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en effet !
846d7c4
to
80a4509
Compare
Quoi ?
Lié à #1028
La configuration actuelle fonctionne mais ne permettait pas d'envoyer des e-mails transactionnels à la manière de Mailjet.
J'ai aussi modifié le DEFAULT_FROM_EMAIL & DEFAULT_FROM_NAME