Skip to content

Commit 80a96d0

Browse files
author
Kátia Nakamura
committed
settings: get SECRET_KEY from the env variables
1 parent d96362e commit 80a96d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyconbalkan/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = config('SECRET_KEY')
25+
SECRET_KEY = os.getenv('SECRET_KEY', config('SECRET_KEY'))
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = config('DEBUG', default=False, cast=bool)

0 commit comments

Comments
 (0)