diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index d568f711bd08a5f2f43a43533147b02a6ba89f37..6eaf3a2ec59107e480ce4423f153e588b17a819f 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -34,6 +34,12 @@ ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org"] TIME_ZONE = os.environ.get("TZ", "America/Los_Angeles") +# Set the email address that will receive errors. +admin_email = os.environ.get("DJANGO_ADMIN_EMAIL", None) +if admin_email is not None: + ADMINS = ("Webmaster", admin_email) + + # Use SSLRedirectMiddleware SSL_ON = os.environ.get("DJANGO_SSL_ON", True) SSL_ALWAYS = os.environ.get("DJANGO_SSL_ALWAYS", False)