#24460: Update documentation to explain why `HttpRequest.build_absolute_uri`
doesn't have a scheme option
-------------------------------+--------------------
Reporter: rednaw | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Earlier I created #24459, where I wanted to add an option to
`HttpRequest.build_absolute_uri` to be able to create a https URI on a
http page, but we came to the conclusion this is the wrong solution to the
problem, so I would like to add the explanation for this to the
documentation.
I was thinking of a "Note" box with a text like:
"Django discourages mixing HTTP and HTTPS on the same domain. Therefore,
`build_absolute_uri` will always generate an absolute URI with the same
scheme the current request has."
--
Ticket URL: <https://code.djangoproject.com/ticket/24460>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.b64d831c71214bde66578f889628ce7e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.