Why is SECURE_SSL_REDIRECT always getting set to True?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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.

ZsFD,F 0bQs1Ywyq
IYDaSNG4ln1pbSD6WmdhV9i

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham