HttpRequest.build_absolute_uri(location) [source]
Returns the absolute URI form of location. If no location is provided, the location will be set to request.get_full_path().
If the location is already an absolute URI, it will not be altered. Otherwise the absolute URI is built using the server variables available in this request.
Example: "https://example.com/music/bands/the_beatles/?print=true"
Note Mixing HTTP and HTTPS on the same site is discouraged, therefore build_absolute_uri() will