Sets the admin e-mail address

This commit is contained in:
Christopher Neugebauer 2017-08-17 08:16:09 -07:00
parent 66c6b81726
commit 6363b4a422

View file

@ -34,6 +34,12 @@ ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org"]
TIME_ZONE = os.environ.get("TZ", "America/Los_Angeles") 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 # Use SSLRedirectMiddleware
SSL_ON = os.environ.get("DJANGO_SSL_ON", True) SSL_ON = os.environ.get("DJANGO_SSL_ON", True)
SSL_ALWAYS = os.environ.get("DJANGO_SSL_ALWAYS", False) SSL_ALWAYS = os.environ.get("DJANGO_SSL_ALWAYS", False)