settings: set CSRF_COOKIE_SECURE from environment

fixes #5211
This commit is contained in:
Frédéric Péters 2014-07-24 08:41:01 +02:00 committed by Benjamin Dauvergne
parent 01a569ddf7
commit 7711717ace
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ else:
INTERNAL_IPS = ('127.0.0.1')
SECRET_KEY = os.environ.get('SECRET_KEY', '0!=(1kc6kri-ui+tmj@mr+*0bvj!(p*r0duu2n=)7@!p=pvf9n')
CSRF_COOKIE_SECURE = os.environ.get('CSRF_COOKIE_SECURE') == 'yes'
LOGGING = {
'version': 1,