Skip to content

Commit ad11947

Browse files
committed
Changed the SECRET_KEY setting to take account of the settings in settings_local.
- Legacy-Id: 7262
1 parent 9ea9ba1 commit ad11947

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

ietf/settings.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,13 @@
393393

394394
PRODUCTION_TIMEZONE = "America/Los_Angeles"
395395

396+
# Put the production SECRET_KEY in settings_local.py, and also any other
397+
# sensitive or site-specific changes. DO NOT commit settings_local.py to svn.
398+
from settings_local import *
399+
396400
# We provide a secret key only for test and development modes. It's
397401
# absolutely vital that django fails to start in production mode unless a
398402
# secret key has been provided elsewhere, not in this file which is
399403
# publicly available, for instance from the source repository.
400-
if not SERVER_MODE == 'production':
404+
if SERVER_MODE != 'production' and SECRET_KEY not in locals():
401405
SECRET_KEY = 'PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHka'
402-
403-
# Put the production SECRET_KEY in settings_local.py, and also any other
404-
# sensitive or site-specific changes. DO NOT commit settings_local.py to svn.
405-
from settings_local import *
406-
407-

0 commit comments

Comments
 (0)