File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 393393
394394PRODUCTION_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-
You can’t perform that action at this time.
0 commit comments