settings: split SECRET_FILE from SECRET_KEY

master
Ben Boeckel 6 years ago
parent 0738d02466
commit f1bfaf0242

@ -23,7 +23,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
# See secret.py for how this is generated; uses a file 'secret.txt' in the root # See secret.py for how this is generated; uses a file 'secret.txt' in the root
# directory # directory
SECRET_KEY = get_secret_from_file(os.path.join(BASE_DIR, "secret.txt")) SECRET_FILE = os.path.join(BASE_DIR, "secret.txt")
SECRET_KEY = get_secret_from_file(SECRET_FILE)
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False DEBUG = False

Loading…
Cancel
Save