summaryrefslogtreecommitdiffstats
path: root/takahe/settings/production.py
blob: f4531771e22056168cc4d4a304f2d02acf99e55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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

# TODO: Allow better setting of allowed_hosts, if we need to
ALLOWED_HOSTS = ["*"]