Custom Context Processors

2007-11-15 Thread Eric Abrahamsen
I've got a navigation menu template I'm including in pretty much every page of my site, and I want the content of the menu to vary depending on where a visitor is located. After poking through the message archives, it looks like the simplest solution (I don't think I need a custom template tag) i

Re: Custom Context Processors

2007-11-15 Thread Eric Abrahamsen
> Look in request.path for the request URL. That is exactly the same > string as Django passes to django.core.urlresolvers.resolve() when it is > working out which view to call with which parameters. Brilliant. Thank you very much! E --~--~-~--~~~---~--~~ You rece

Re: Custom Context Processors

2007-11-15 Thread Malcolm Tredinnick
On Thu, 2007-11-15 at 03:13 -0800, Eric Abrahamsen wrote: > I've got a navigation menu template I'm including in pretty much every > page of my site, and I want the content of the menu to vary depending > on where a visitor is located. After poking through the message > archives, it looks like t