From f41e0e081d3e093caea1cc0bd54a893887f7ac05 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Sat, 7 Mar 2020 11:10:21 +0100 Subject: [PATCH] mailing --- rental/tasks.py | 2 +- villafleurie/settings.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rental/tasks.py b/rental/tasks.py index a62bd66..23ac800 100644 --- a/rental/tasks.py +++ b/rental/tasks.py @@ -42,4 +42,4 @@ def send_notification(subject, name, message): # , template="activation"): @shared_task def send_quotation(name, email): """ Send quotation to customer """ - send_confirmation_mail(name, email): # , template="welcome") + send_confirmation_mail(name, email) # : , template="welcome") diff --git a/villafleurie/settings.py b/villafleurie/settings.py index 7ab7dc1..b40cc55 100644 --- a/villafleurie/settings.py +++ b/villafleurie/settings.py @@ -8,7 +8,6 @@ ADMINS = [ ] SECRET_KEY = os.environ.get('SECRET_KEY') -SECRET_KEY = "q00_4wqdc^n=7)p2lm)!gy&fms8md_b4#1aqysllvqq==2c9!$" if os.environ.get('ENV') == 'PRODUCTION': @@ -147,8 +146,7 @@ EMAIL_USE_TLS = True EMAIL_PORT = 587 EMAIL_SUBJECT_PREFIX = "[VillaFleurieGuadeloupe] " DEFAULT_FROM_EMAIL = "'Nilka, VillaFleurie' " -EMAIL_HOST_USER = "location.villafleurie@gmail.com" +EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') -EMAIL_HOST_PASSWORD = "location229818" CELERY_BROKER_URL = "amqp://rabbitmq"