On Thu, Feb 4, 2010 at 2:39 PM, weiwei <[email protected]> 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 [email protected].
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