Django 1.9及更高版本:
## template{{ request.path }} # -without GET parameters {{ request.get_full_path }} # - with GET parameters旧:
## settings.pyTEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request',)## views.pyfrom django.template import *def home(request): return render_to_response('home.html', {}, context_instance=RequestContext(request))## template{{ request.path }}


