获取带参数URL:request.get_all_path(). 获取不带参数URL:request.path. 获取主机地址:request.get_host(). 参考. Django获取当前页面的URL——小记 ...
確定! 回上一頁