Sets the admin e-mail address
This commit is contained in:
parent
66c6b81726
commit
6363b4a422
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue