获取带参数URL:request.get_full_path() 获取不带参数URL:request.path 获取主机地址:request.get_host() 转载于:https://www.cnblogs.com/LYliangying/p/9709734.html