Re: Request object in template HTML

2008-07-15 Thread Eric Abrahamsen
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

Request object in template HTML

2008-07-15 Thread Nazmi ZORLU
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

Re: Request in a template

2007-11-21 Thread Martin
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',

Re: Request in a template

2007-11-21 Thread Alex Koshelev
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

Re: Request in a template

2007-11-21 Thread Will Larson
> 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

Request in a template

2007-11-21 Thread Martin
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