Skip to content

Commit 6120857

Browse files
committed
Added a secret key to settings.py for development use. NOT for production use; that needs to go in settings_local.py
- Legacy-Id: 7234
1 parent e593d9d commit 6120857

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,15 @@
393393

394394
PRODUCTION_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.
398405
from settings_local import *
406+
407+

0 commit comments

Comments
 (0)