Django获取当前页面的URL——小记 获取带参数URL:request.get_full_path() 获取不带参数URL:request.path 获取主机地址:request.get_host()