Fix default for secret_key in configuration.py

This commit is contained in:
Christian Mäder 2020-10-20 21:45:37 +02:00
parent d0c7b87925
commit 2dba2b8811

View File

@ -75,7 +75,7 @@ REDIS = {
# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and # For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
# symbols. NetBox will not run without this defined. For more information, see # symbols. NetBox will not run without this defined. For more information, see
# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY # https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY
SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY')) SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY', ''))
######################### #########################