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)" as a third argument to  
render_to_response to get access to a 'request' variable (and a bunch  
else) in your templates. More details here:

http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext

Yours,
Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to