Re: Reference to the url of the current page in a template

2008-05-16 Thread M.Ganesh
Scott Moonen wrote: > Ganesh, > > First ensure that your TEMPLATE_CONTEXT_PROCESSORS contains: > > TEMPLATE_CONTEXT_PROCESSORS = ( > . . . > 'django.core.context_processors.request', > . . . > ) > > Then you can use the variable {{ request.path }} in your templates, > assuming that the UR

Re: Reference to the url of the current page in a template

2008-05-16 Thread Scott Moonen
Ganesh, First ensure that your TEMPLATE_CONTEXT_PROCESSORS contains: TEMPLATE_CONTEXT_PROCESSORS = ( . . . 'django.core.context_processors.request', . . . ) Then you can use the variable {{ request.path }} in your templates, assuming that the URLs are all on the same host. If not, you'l

Re: Reference to the url of the current page in a template

2008-05-16 Thread Alex Koshelev
If you have `django.core.context_processors.request` context processor enabled and you use RequestContext so the `{{request.path}}` will return current path. Or you can simple pass `request.path` variable to the template context manually. On May 16, 8:58 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote:

Reference to the url of the current page in a template

2008-05-16 Thread M.Ganesh
Hi, I don't know how to clearly explain what I want to know. Let me try once again... I have a small controlpanel page which I include in all my other pages. This control panel page has got a link to 'login' page. Users are allowed to view the pages without login, but they have to login if th