Skip to content

Commit 5bc3725

Browse files
committed
config SECURE_SSL_REDIRECT, default not DEBUG
1 parent 86445d7 commit 5bc3725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

courtbot/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@
139139
]
140140

141141
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
142-
SECURE_SSL_REDIRECT = True
142+
SECURE_SSL_REDIRECT = config('SECURE_SSL_REDIRECT', default=not DEBUG)
143143

144144
django_heroku.settings(locals())

0 commit comments

Comments
 (0)