欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Django获取当前页面URL

shiping1 的头像

Django获取当前页面URL

更多0

获取带参数URL

request.get_full_path()
                                获取不带参数URL
request.path
                                获取主机地址
request.get_host() 



来自  http://outofmemory.cn/code-snippet/10019/DjangoURL




普通分类: