On Jul 15, 2008, at 9:55 PM, Nazmi ZORLU wrote:
> Hi,
>
> I wonder if I can access request object in html template or absolute
> page url that currently rendering.
If you're not using generic views, you can pass
"context_instance=RequestContext(request)&quo
Hi,
I wonder if I can access request object in html template or absolute
page url that currently rendering.
Thanks,
Nazmi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
Got it, thanks.
I just had to insert this into my settings.py:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
You can use this context processor
http://www.djangoproject.com/documentation/templates_python/#django-core-context-processors-request
or pass request instance manually to template context in each view;)
On 22 нояб, 00:56, Martin <[EMAIL PROTECTED]> wrote:
> I have an parameter in my qu
> I have an parameter in my querystring which i would like to access in
> a template, fx:
>
> ---
>
> ---
>
http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-
processors/
Shows you how to do just that.
But, I would recommend handling that a bit different. Specifically
I have an parameter in my querystring which i would like to access in
a template, fx:
---
---
is this possible?
Thanks.
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
6 matches
Mail list logo