0

Django: Redirect HTTP to HTTPS, basically the Django already support to handle this redirection at https://docs.djangoproject.com/en/dev/topics/security/#ssl-https

Edit in your settings.py

# Redirecting from `HTTP` to `HTTPS` for Django 1.8 or later
SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

Hope it usefull..

python network solution settings internet

Your Answer

blog comments powered by Disqus