Doc: Add ignore info for secret-key env-test

This commit is contained in:
winkidney
2019-12-19 23:48:19 +08:00
parent e8211274bb
commit 26934dae71

View File

@@ -6,7 +6,8 @@ from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
if 'SECRET_KEY' not in os.environ:
logging.warning(
"No SECRET_KEY given in environ, please have a check"
"No SECRET_KEY given in environ, please have a check."
"If you have a local_settings file, please ignore this warning."
)
SECRET_KEY = os.environ.get('SECRET_KEY', "PLEASE_REPLACE_ME")