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