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 SECRET_KEY in here, or any other sensitive or site-specific
397- # changes. DO NOT commit settings_local.py to svn.
396+ # We provide a secret key only for test and development modes. It's
397+ # absolutely vital that django fails to start in production mode unless a
398+ # secret key has been provided elsewhere, not in this file which is
399+ # publicly available, for instance from the source repository.
400+ if not SERVER_MODE == 'production' :
401+ 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.
398405from settings_local import *
406+
407+
You can’t perform that action at this time.
0 commit comments