2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 09:46:31 +00:00

SECRET_KEY is now generated by a script and stored as a local file

- key file ignored from git
This commit is contained in:
Oliver Walters
2019-04-24 16:01:47 +10:00
parent d46afcdfe8
commit 3827806603
4 changed files with 31 additions and 3 deletions

View File

@@ -21,8 +21,10 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
# TODO: remove this
SECRET_KEY = 'oc2z%5)lu#jsxi#wpg)700z@v48)2aa_yn(a(3qg!z!fw&tr9f'
key_file = open('secret_key.txt', 'r')
SECRET_KEY = key_file.read().strip()
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True