On Thu, Feb 4, 2010 at 1:41 PM, weiwei <[email protected]> wrote:

> "DJANGO.CORE.CONTEXT_PROCESSORS.REQUEST
> If TEMPLATE_CONTEXT_PROCESSORS contains this processor, every
> RequestContext will contain a variable request, which is the current
> HttpRequest. Note that this processor is not enabled by default;
> you'll have to activate it. " from this page
>
> http://docs.djangoproject.com/en/dev/ref/templates/api/
>
> But i didn't find how to activate it
>
>
You activate it by including it in TEMPLATE_CONTEXT_PROCESSORS in
settings.py.  That is all you have to do.



> Here is my question
>
>
> http://stackoverflow.com/questions/2160261/access-request-in-django-custom-template-tags
>
> after i followed the answer i still got errors
>
>
I do not see where you show the view code in that question. Possibly you are
not using a RequestContext to render the template?

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