Why is SECURE_SSL_REDIRECT always getting set to True?

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.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

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

C++ virtual function: Base class function is called instead of derived