Re: Accessing current URI from template tag

2012-06-08 Thread Swaroop Shankar V
Thanks Bruno, will check that. Thanks and Regards, Swaroop Shankar V On Wed, Jun 6, 2012 at 2:59 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Jun 6, 10:27 am, Swaroop Shankar V wrote: > > Hello All, > > > > Well my question is on how to get the current URI in a templat

Re: Accessing current URI from template tag

2012-06-06 Thread bruno desthuilliers
On Jun 6, 10:27 am, Swaroop Shankar V wrote: > Hello All, > > Well my question is on how to get the current URI in a template tag. You'll have to use a RequestContext in the views rendering the templates where you use this templatetag, and activate the django.core.context_processors.request conte