📜  request.build_absolute_uri django - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:07.505000             🧑  作者: Mango

代码示例1
Use handy request.build_absolute_uri() method on request, pass it the relative url and it'll give you full one.

By 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.