在实际开发中,经常需要在template中获取当前url。获取方法如下:. django 1.9版本以上 ## template文件中 {{ request.path }} # 不带request.get参数 ...
確定! 回上一頁