Skip to content

Commit ec58068

Browse files
committed
Fixed a bug in the check for a SECRET_KEY setting
- Legacy-Id: 7343
1 parent 2f072a9 commit ec58068

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,5 +416,5 @@ def skip_suspicious_operations(record):
416416
# absolutely vital that django fails to start in production mode unless a
417417
# secret key has been provided elsewhere, not in this file which is
418418
# publicly available, for instance from the source repository.
419-
if SERVER_MODE != 'production' and SECRET_KEY not in locals():
419+
if SERVER_MODE != 'production' and 'SECRET_KEY' not in locals():
420420
SECRET_KEY = 'PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHka'

0 commit comments

Comments
 (0)