read secret key from file

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-09-03 20:04:12 +02:00
parent 16008512b2
commit 51373f3c22
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ LOGIN_REDIRECT_URL = None
EMAIL_HOST="localhost"
EMAIL_PORT=25
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i'
SECRET_KEY_FILE = os.path.join(BASE_DIR, "secret-key")
with open(SECRET_KEY_FILE, "r") as f:
SECRET_KEY = f.read().strip()
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False