On 1/22/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 1/22/07, James Bennett <[EMAIL PROTECTED]> wrote:
> > On 1/22/07, Andy Dustman <[EMAIL PROTECTED]> wrote:
> > > Here's how I made it work:
> > >
> > > Index: django/views/defaults.py
> >
> > That view uses RequestContext, so you could just add
> > 'django.core.context_processors.request' to your
> > TEMPLATE_CONTEXT_PROCESSORS setting and the full request will be made
> > available to the template.
>
> (though I think there's a good argument to be made for adding the
> referer to the context for that view, but I sent that reply too soon)

That does the trick. For future reference:

http://www.djangoproject.com/documentation/settings/#template-context-processors
-- 
Patriotism means to stand by the country. It does
not mean to stand by the president. -- T. Roosevelt

This message has been scanned for memes and
dangerous content by MindScanner, and is
believed to be unclean.

--~--~---------~--~----~------------~-------~--~----~
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