Skip to content

Commit 2dba2b8

Browse files
committed
Fix default for secret_key in configuration.py
1 parent d0c7b87 commit 2dba2b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _read_secret(secret_name, default = None):
7575
# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
7676
# symbols. NetBox will not run without this defined. For more information, see
7777
# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY
78-
SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY'))
78+
SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY', ''))
7979

8080

8181
#########################

0 commit comments

Comments
 (0)