Thanks a lot, i did miss to pass context_instance=RequestContext(request) in
my view code def access(request): return render_to_response('tool.html',context_instance=RequestContext(request)) after I added "context_instance=RequestContext(request)" It is working now like a charm! Thanks again! On Feb 4, 11:54 am, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Feb 4, 2010 at 2:39 PM, weiwei <online.service....@gmail.com> wrote: > > Thanks.. > > > Here is my code > > You repeated the code for the template tag and the context processors > setting; that's not what I asked for. > > I still don't see the code for the view that renders the template that > includes the template tag you are working with. That is the code that must > specify a RequestContext if you want to access the variables set by the > request context processor in your template tag. The context processor won't > set variables in a plain Context, the view code (or whatever code is > supplying the context for the template render) must specify a > RequestContext. See for example 'some_view' under: > > http://docs.djangoproject.com/en/dev/ref/templates/api/#id1 > > Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.