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
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
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:
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
4 matches
Mail list logo