欢迎各位兄弟 发布技术文章
这里的技术是共享的
获取带参数URL
request.get_full_path()
获取不带参数URL
request.path
获取主机地址
request.get_host() 来自 http://outofmemory.cn/code-snippet/10019/DjangoURL