From 796c9f324e56f9fbaec89a82a5f617583ade7956 Mon Sep 17 00:00:00 2001 From: msansen1 Date: Wed, 27 Jan 2021 14:52:30 +0100 Subject: [PATCH] Fix for review --- hc/front/views.py | 1 + hc/settings.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hc/front/views.py b/hc/front/views.py index b6ce786b..0c68e628 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -756,6 +756,7 @@ def channels(request, code): "project": project, "profile": project.owner_profile, "channels": channels, + "enable_email": settings.EMAIL_ENABLED is True, "enable_apprise": settings.APPRISE_ENABLED is True, "enable_call": settings.TWILIO_AUTH is not None, "enable_discord": settings.DISCORD_CLIENT_ID is not None, diff --git a/hc/settings.py b/hc/settings.py index 5595ec32..98ee2971 100644 --- a/hc/settings.py +++ b/hc/settings.py @@ -26,7 +26,7 @@ def envint(s, default): return int(v) -SECRET_KEY = os.getenv("SECRET_KEY", "---") +SECRET_KEY = os.getenv("SECRET_KEY", "") METRICS_KEY = os.getenv("METRICS_KEY") DEBUG = envbool("DEBUG", "True") ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "*").split(",") @@ -212,7 +212,6 @@ TWILIO_FROM = os.getenv("TWILIO_FROM") TWILIO_USE_WHATSAPP = envbool("TWILIO_USE_WHATSAPP", "False") # PagerDuty -PAGERDUTY_ENABLED = envbool("PAGERDUTY_ENABLED", "True") PD_VENDOR_KEY = os.getenv("PD_VENDOR_KEY") # Trello