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

remove test log, configure sendgrid sandbox via env var

parent 3570402b
Branches
No related tags found
No related merge requests found
"""Mails app signals.""" """Mails app signals."""
from django.dispatch import Signal, receiver from django.dispatch import Signal, receiver
from django.db.models.signals import post_save
from python_http_client.exceptions import HTTPError from python_http_client.exceptions import HTTPError
from logs import get_logger from logs import get_logger
...@@ -34,8 +33,3 @@ def log_failed(sender, exception, **kwargs): ...@@ -34,8 +33,3 @@ def log_failed(sender, exception, **kwargs):
logger.exception(exception.read()) logger.exception(exception.read())
else: else:
logger.exception(exception) logger.exception(exception)
@receiver(post_save)
def test_logger(sender, **kwargs):
logger.info('TEST')
...@@ -20,13 +20,11 @@ ALLOWED_HOSTS = [ ...@@ -20,13 +20,11 @@ ALLOWED_HOSTS = [
SESSION_COOKIE_SECURE = True SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True
SECURE_BROWSER_XSS_FILTER = True SECURE_BROWSER_XSS_FILTER = True
# SECURE_SSL_REDIRECT = True
# Mails # Mails
MAILS_ENABLED = True MAILS_ENABLED = True
SENDGRID_SANDBOX_MODE_IN_DEBUG = os.environ.get(
# Visits 'SENDGRID_SANDBOX_MODE_IN_DEBUG', True)
VISITS_NOTIFY_PARTICIPATE = True
# 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