diff options
author | Andrew Godwin | 2022-11-12 22:10:06 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-12 22:10:06 -0700 |
commit | 143a4a6e8c70557710d1b207a176f169d145ed1e (patch) | |
tree | 133454aa4da2b5614a33bc4a91d7b152f50eb40c /takahe/settings/production.py | |
parent | 878f56b411279cd9865a7ec05f1d14c9f70f6187 (diff) | |
download | takahe-143a4a6e8c70557710d1b207a176f169d145ed1e.tar.gz takahe-143a4a6e8c70557710d1b207a176f169d145ed1e.tar.bz2 takahe-143a4a6e8c70557710d1b207a176f169d145ed1e.zip |
Start some settings work
Diffstat (limited to 'takahe/settings/production.py')
-rw-r--r-- | takahe/settings/production.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/takahe/settings/production.py b/takahe/settings/production.py new file mode 100644 index 0000000..2f943f4 --- /dev/null +++ b/takahe/settings/production.py @@ -0,0 +1,17 @@ +import os + +from .base import * # noqa + +# Load secret key from environment +try: + SECRET_KEY = os.environ["TAKAHE_SECRET_KEY"] +except KeyError: + print("You must specify the TAKAHE_SECRET_KEY environment variable!") + os._exit(1) + +# Ensure debug features are off +DEBUG = False +CRISPY_FAIL_SILENTLY = True + +# TODO: Allow better setting of allowed_hosts, if we need to +ALLOWED_HOSTS = ["*"] |