Why is SECURE_SSL_REDIRECT always getting set to True?

Multi tool use


Why is SECURE_SSL_REDIRECT always getting set to True?
I currently have a local .env
file which contains parameters for my local environment. I have a Django App hosted on Heroku where I assign my config variables. I figured using python-decouple
's .env file to set SECURE_SSL_REDIRECT=False
and then in my settings.py
use SECURE_SSL_REDIRECT = config('SECURE_SSL_REDIRECT')
would work. However, no matter the case, if Django sees SECURE_SSL_REDIRECT = True
ANYWHERE, it tries to load as HTTPS and my god is it frustrating.
.env
python-decouple
SECURE_SSL_REDIRECT=False
settings.py
SECURE_SSL_REDIRECT = config('SECURE_SSL_REDIRECT')
SECURE_SSL_REDIRECT = True
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.