If I want to give an option for users to log in to a website using https://
instead of http://
, I'd best to give them an option to get there in my view or template.
I'd like to have the link "Use secure connection" on my login page - but then, how do I do it without hardcoding the URL?
I'd like to be able to just do:
{% url login_page %}
{% url login_page_https %}
and have them point to http://example.com/login
and https://example.com/login
.
How can I do this?