Skip to content
Snippets Groups Projects
Commit b6250bc5 authored by florimondmanca's avatar florimondmanca
Browse files

fix type of sendgrid sandbox mode

parent 02a3a6eb
Branches
No related tags found
No related merge requests found
...@@ -23,8 +23,12 @@ SECURE_BROWSER_XSS_FILTER = True ...@@ -23,8 +23,12 @@ SECURE_BROWSER_XSS_FILTER = True
# Mails # Mails
MAILS_ENABLED = True MAILS_ENABLED = True
SENDGRID_SANDBOX_MODE_IN_DEBUG = os.environ.get(
'SENDGRID_SANDBOX_MODE_IN_DEBUG', True) # Sendgrid
sandbox_mode = os.environ.get('SENDGRID_SANDBOX_MODE_IN_DEBUG', True)
if sandbox_mode in ('0', 'False', 'false'):
sandbox_mode = False
SENDGRID_SANDBOX_MODE_IN_DEBUG = bool(sandbox_mode)
# Celery settings # Celery settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment