request build absolute uri django

Solutions on MaxInterview for request build absolute uri django by the best coders in the world

showing results for - "request build absolute uri django"
Fabio
02 Mar 2016
1Use handy request.build_absolute_uri() method on request, pass it the relative url and it'll give you full one.
2
3By default, the absolute URL for request.get_full_path() is returned, but you can pass it a relative URL as the first argument to convert it to an absolute URL.