Re: Lazy evaluation of django custom context processor in base.html

2019-06-10 Thread BIJAL MANIAR
Hi, Can anyone help with django custom context processors. Have written above custom context processor that retrieves a value from database. This value has to be available in all templates as I have to pass it in "custom dimension" to google analytics. Is there an efficient way to

Re: Lazy evaluation of django custom context processor in base.html

2019-04-17 Thread BIJAL MANIAR
Hi, Can anyone help on this. I want to pass value of "USERROLE" across all the django templates through "base.html". How to efficiently call custom context processor as it queries database for every page load. Thanks, Bijal On Monday, April 15, 2019 at 6:35:15 PM UT

Lazy evaluation of django custom context processor in base.html

2019-04-15 Thread BIJAL MANIAR
Hi, Have created a custom context processor to retrieve extra user attribute from custom UserData model. Passing this variable in "base.html" template calls the custom context processor function on every request to render html page. Since it is a database query, how to efficiently c

Re: Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Erik Cederstrand
> Den 09/06/2015 kl. 18.54 skrev Alexey Grigoriev : > > I found this issue in my big project. And then I started new Django project > from scratch, and reproduced the problem. > You can reproduce this bug: > 1) start new Django project > 2) create context processor tha

Re: Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Alexey Grigoriev
I found this issue in my big project. And then I started new Django project from scratch, and reproduced the problem. You can reproduce this bug: 1) start new Django project 2) create context processor that raises Http404 3) set Debug=False 4) create custom '404.html' template An

Re: Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Kapil Mangtani
have you written the handler correctly? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send em

Re: Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Galia Ladiray
Maybe it does not find your custom 404.html (and gives you a 500 of not finding it)? Try to use this template elsewhere with debug=True, just to see On Tuesday, June 9, 2015 at 1:22:44 PM UTC+2, Alexey Grigoriev wrote: > > Django doesn't catch django.http.Http404 exception in

Bug in Django? It throws server error when context processor raises Http404

2015-06-09 Thread Alexey Grigoriev
Django doesn't catch django.http.Http404 exception in my context processor when Debug=False and when I have custom '404.html' template. It just throws Internal Server Error. Is it Django bug? -- You received this message because you are subscribed to the Google Groups "Dja

RE: when is a Context Processor called?

2012-10-09 Thread lacrymol...@gmail.com
en is a Context Processor called? 2012/10/9 Stefano Tranquillini > ok, > but in this way when the user logs out i've to remove the object from the > request, right? > what if the user closes the browser? > No. The request object lives just for one request from browser. User cl

Re: when is a Context Processor called?

2012-10-09 Thread Marek Brzóska
2012/10/9 Stefano Tranquillini > ok, > but in this way when the user logs out i've to remove the object from the > request, right? > what if the user closes the browser? > No. The request object lives just for one request from browser. User clicks tries to get certain url in browser, then django

Re: when is a Context Processor called?

2012-10-09 Thread Tom Evans
On Mon, Oct 8, 2012 at 3:28 PM, Stefano T wrote: > Ok. > so basically they are called before the rendering of a template. > > How can i have an object stored in the request object (if possible)? > > Something that lets me to do, in a view: request.user_profile... > You can define a simple middlew

Re: when is a Context Processor called?

2012-10-08 Thread Kurtis Mullins
ets me to do, in a view: request.user_profile... > > > On Sunday, October 7, 2012 8:37:01 PM UTC+2, Daniel Roseman wrote: >> >> On Sunday, 7 October 2012 17:43:19 UTC+1, Stefano T wrote: >> >>> Hi all. >>> i just discovered the context processor, and i use

Re: when is a Context Processor called?

2012-10-08 Thread Stefano T
ctober 2012 17:43:19 UTC+1, Stefano T wrote: > >> Hi all. >> i just discovered the context processor, and i use it for put an object >> in the request automatically, this is the code: >> >> def addProfile(request): >> try: >> user

Re: when is a Context Processor called?

2012-10-07 Thread Daniel Roseman
On Sunday, 7 October 2012 17:43:19 UTC+1, Stefano T wrote: > Hi all. > i just discovered the context processor, and i use it for put an object in > the request automatically, this is the code: > > def addProfile(request): > try: > userProfile = UserPro

Re: Using Context Processor as form with HttpResponseRedirect

2012-02-01 Thread Jenna Pullen
Hi Daniel thanks for your reply that makes much more sense now. On Wednesday, February 1, 2012, richard wrote: > Hi i have seen alot of people saying to use a context processor to > include forms in multiple page. I have written a context processor > login form that just returns t

Re: Using Context Processor as form with HttpResponseRedirect

2012-02-01 Thread Daniel Roseman
On Wednesday, 1 February 2012 01:34:03 UTC, richard wrote: > > Hi i have seen alot of people saying to use a context processor to > include forms in multiple page. I have written a context processor > login form that just returns the django Authentication form and > everyth

Using Context Processor as form with HttpResponseRedirect

2012-01-31 Thread richard
Hi i have seen alot of people saying to use a context processor to include forms in multiple page. I have written a context processor login form that just returns the django Authentication form and everything works great including the form.errors etc except that I cant seem to redirect from the

Re: Passing variables from a context processor to a template

2012-01-06 Thread Guy Nesher
27;ve initially tried to use a dictionary but was still unable to pull > > > the data in the template. > > > > I'm using your updated context processor: > > > def swiss_context_processors(request): > > >     added_context = { 'mytest': 'aaa&#

Re: Passing variables from a context processor to a template

2012-01-05 Thread Rainy
On Jan 5, 12:38 pm, Rainy wrote: > On Jan 5, 12:35 pm, Guy Nesher wrote: > > > Thanks, > > > I've initially tried to use a dictionary but was still unable to pull > > the data in the template. > > > I'm using your updated context proce

Re: Passing variables from a context processor to a template

2012-01-05 Thread Rainy
On Jan 5, 12:35 pm, Guy Nesher wrote: > Thanks, > > I've initially tried to use a dictionary but was still unable to pull > the data in the template. > > I'm using your updated context processor: > def swiss_context_processors(request): >     added_context =

Re: Passing variables from a context processor to a template

2012-01-05 Thread Guy Nesher
Thanks, I've initially tried to use a dictionary but was still unable to pull the data in the template. I'm using your updated context processor: def swiss_context_processors(request): added_context = { 'mytest': 'aaa', } return added_context and trying

Re: Passing variables from a context processor to a template

2012-01-05 Thread Nan
Two things: 1) make sure the context processor is installed in your settings file. 2) context processors should return dicts. Try: def swiss_context_processors(request): added_context = { 'mytest': 'aaa', } return added_context On Jan 5, 12:03 pm, Guy Nesher w

Re: Passing variables from a context processor to a template

2012-01-05 Thread Michael Elkins
On Thu, Jan 05, 2012 at 09:03:56AM -0800, Guy Nesher wrote: I've created a simple context processor which simply returns a variable, however I'm unable to retrieve it from my template. "Each context processor must return a dictionary." https://docs.djangoproject.com/en/1

Passing variables from a context processor to a template

2012-01-05 Thread Guy Nesher
Hi, I've created a simple context processor which simply returns a variable, however I'm unable to retrieve it from my template. The context processor is quite simple : def swiss_context_processors(request): mytest = "aaa" return mytest and I am calling the context

Django auth context processor: not to query for user for each request

2011-09-24 Thread Alexey Moskvin
Hi, I enabled django auth middleware, so now I have a user variable in my request context. In this case for each page request user object is queried from the database. Is it possible to set up this middleware to use a cached user object (for example, put by me in session)? User objects are not upd

Re: user and perms context variables from auth context processor (in Django 1.2.3)

2011-04-30 Thread Karen Tracey
ing. So I checked in the debug toolbar and the variables > I get from the auth context processor are these: > > {'messages': > object at 0xa38284c>, > 'perms': , > 'user': 0xa31748c>} Is your view using a RequestContext to render the response?

user and perms context variables from auth context processor (in Django 1.2.3)

2011-04-29 Thread simon
{% if perms.foo.change_bar %} do stuff {% endif %} It's always false even when logged in as a superuser. I tried doing {{user.username}} to see if the user variable worked and it also displayed nothing. So I checked in the debug toolbar and the variables I get from the auth context processor

Re: Context processor

2010-08-19 Thread Pep
; Thanks for your help. > > > This is my code : > > > def custom_proc(request): > >     "A context processor that provides 'authForm'" > > >     return { > >         'authForm' : authForm, > >         'event': eve

Re: Context processor

2010-08-19 Thread bruno desthuilliers
On 19 août, 11:31, Pep wrote: > Thanks for your help. > > This is my code : > > def custom_proc(request): >     "A context processor that provides 'authForm'" > >     return { >         'authForm' : authForm, >         'event':

Re: Context processor

2010-08-19 Thread bruno desthuilliers
On 19 août, 10:30, Daniel Roseman wrote: > > Context processors are automatically applied to all views Sorry but this is plain wrong. Context processors are automatically applied to all RequestContext instances - which is note quite the same thing. http://docs.djangoproject.com/en/dev/ref/templa

Re: Context processor

2010-08-19 Thread Pep
Thanks for your help. This is my code : def custom_proc(request): "A context processor that provides 'authForm'" return { 'authForm' : authForm, 'event': event } def home(request, city): paginator = Paginator(Event.objec

Re: Context processor

2010-08-19 Thread Daniel Roseman
; > Thanks for your help I'm sorry, I don't understand your question. You add context items in your call to render_to_response as normal. Context processors act on top of this, to add extra items for all views. If you have elements that only need to be in the context for a single view,

Re: Context processor

2010-08-19 Thread Pep
p wrote: > > > Hi everybody, > > > I would like to use the context processor I wrote with my registration > > views. But I don't see how to do it without changing the registration > > views ? Somebody has an idea ? > > > Thanks ! > > > PEP > >

Re: Context processor

2010-08-19 Thread Daniel Roseman
On Aug 19, 8:42 am, Pep wrote: > Hi everybody, > > I would like to use the context processor I wrote with my registration > views. But I don't see how to do it without changing the registration > views ? Somebody has an idea ? > > Thanks ! > > PEP Context process

Context processor

2010-08-19 Thread Pep
Hi everybody, I would like to use the context processor I wrote with my registration views. But I don't see how to do it without changing the registration views ? Somebody has an idea ? Thanks ! PEP -- You received this message because you are subscribed to the Google Groups "Dj

Re: context processor var empty

2010-01-10 Thread Daniel Roseman
On Jan 10, 3:35 am, neridaj wrote: > I'm trying to use a context processor to make all of my blog entry > titles available for an ajax autocomplete search box but for some > reason the var returned from the context processor is empty. > > from blog.models impor

context processor var empty

2010-01-09 Thread neridaj
I'm trying to use a context processor to make all of my blog entry titles available for an ajax autocomplete search box but for some reason the var returned from the context processor is empty. from blog.models import Entry # search/context_processors.py def search(request):

Django formwizard as a context processor?

2009-08-02 Thread 10000angrycats
Has anyone tried to make a FormWizard form (multiple stage form) work across a whole site as a context process? I'm looking at attempting this - have done a context process & a formwizard form, but never tried to 'cross the streams' like this before. In particular, I'll be taking code from forms.

Re: Views runs twice when using custom context processor

2009-05-22 Thread Colin Bean
On Fri, May 22, 2009 at 7:23 AM, eightflower wrote: > > It appears that {% thumbnail %} tag from sorl-thumbnail app is causing > this. When my context processor is off, > thumbnail just does not have anything to do because it has no context. > > > Are the image tags pointin

Re: Views runs twice when using custom context processor

2009-05-22 Thread eightflower
It appears that {% thumbnail %} tag from sorl-thumbnail app is causing this. When my context processor is off, thumbnail just does not have anything to do because it has no context. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Views runs twice when using custom context processor

2009-05-22 Thread eightflower
I noticed that when I delete {% extends *** %} tag from templates which are rendered by aforementioned views, it works fine. Also I excluded all styles and javascript from the *** base template and still when it is 'subclassed' view runs twice. sending request with `curl` works fine ... view run

Views runs twice when using custom context processor

2009-05-22 Thread eightflower
When my simple custom context processor is added to TEMPLATE_CONTEXT_PROCESSORS, every view which uses `RequestContext` is called twice. What am I missing? When I exclude my processor from TEMPLATE_CONTEXT_PROCESSORS these views run once. My processor is just a function which takes request and

Re: Run context processor conditionally?

2009-05-07 Thread James Bennett
On Thu, May 7, 2009 at 2:44 AM, Jani Tiainen wrote: > How you do that? Everywhere I look, documentation states that view is a > "function" (well there is few places where is mentioned "callable"). You may want to consult some Python documentation; writing a class whose instances are callable is

Re: Run context processor conditionally?

2009-05-06 Thread Jani Tiainen
> views out of classes. In which case you can stuff some of these things > in the class __init__ and not have to about them for each view. > > On 5/6/2009 3:37 PM, ringemup wrote: >> Hm, and RequestContext has to be instantiated from every view for >> which one wants to u

Re: Run context processor conditionally?

2009-05-06 Thread ringemup
for each view. > > On 5/6/2009 3:37 PM, ringemup wrote: > > > > > Hm, and RequestContext has to be instantiated from every view for > > which one wants to use the context processor anyway, huh? > > > I always feel like I'm repeating myself when passing global

Re: Run context processor conditionally?

2009-05-06 Thread George Song
ted from every view for > which one wants to use the context processor anyway, huh? > > I always feel like I'm repeating myself when passing global context to > every single template. > > On May 6, 5:13 pm, George Song wrote: >> On 5/6/2009 1:37 PM, ringemup wrote: &g

Re: Run context processor conditionally?

2009-05-06 Thread ringemup
Hm, and RequestContext has to be instantiated from every view for which one wants to use the context processor anyway, huh? I always feel like I'm repeating myself when passing global context to every single template. On May 6, 5:13 pm, George Song wrote: > On 5/6/2009 1:37 PM, ringem

Re: Run context processor conditionally?

2009-05-06 Thread George Song
On 5/6/2009 1:37 PM, ringemup wrote: > I've got some context that every view in one of my apps needs to pass > to its templates... but that I don't want to have to run for pages > that don't use that app, since it executes a lot of queries. Is there > a way to execute

Run context processor conditionally?

2009-05-06 Thread ringemup
I've got some context that every view in one of my apps needs to pass to its templates... but that I don't want to have to run for pages that don't use that app, since it executes a lot of queries. Is there a way to execute the context processor only for views defined in that ap

Re: Context processor or make custom tag

2009-02-16 Thread basoko
o sorry. > > Welcome to the group! > > > I've the follow problem, I want to put in one of my base templates > > (that it's include in main base template) a list of one model, for > > example a Category model that has a relationship with other model like > >

Re: Context processor or make custom tag

2009-02-11 Thread Michael Newman
example a Category model that has a relationship with other model like > Post (this has a ForeignKey with Category). > > I can do it by two ways. I can create a context processor where I can > retrive all category's objects and put them in the context so I could > access them th

Re: Context processor or make custom tag

2009-02-11 Thread Alex Gaynor
e) a list of one model, for > example a Category model that has a relationship with other model like > Post (this has a ForeignKey with Category). > > I can do it by two ways. I can create a context processor where I can > retrive all category's objects and put them in the conte

Context processor or make custom tag

2009-02-11 Thread KrcK
ther model like Post (this has a ForeignKey with Category). I can do it by two ways. I can create a context processor where I can retrive all category's objects and put them in the context so I could access them through all templates, or I can make a new tag where I can do the same and use it

Re: Context Processor in Admin

2008-09-17 Thread Dana
ing an error (other than on the > > change_form.html page, which is working as expected). My question is > > how can I apply my context_processor to just the "Story" Change page > > and no where else? Should I use something other than a context > > processor? I kn

Re: Context Processor in Admin

2008-09-17 Thread Dana
xt_processors), which is causing an error (other than on the > change_form.html page, which is working as expected). My question is > how can I apply my context_processor to just the "Story" Change page > and no where else? Should I use something other than a context > processor?

Re: Context Processor in Admin

2008-09-17 Thread Brian Rosner
admin views (as is the nature > of context_processors), which is causing an error (other than on the > change_form.html page, which is working as expected). My question is > how can I apply my context_processor to just the "Story" Change page > and no where else? Should I use something ot

Context Processor in Admin

2008-09-17 Thread Dana
ors), which is causing an error (other than on the change_form.html page, which is working as expected). My question is how can I apply my context_processor to just the "Story" Change page and no where else? Should I use something other than a context processor? I know with views you can pass

Re: media server implementation - context processor, custom template tag, or custom filter

2008-06-23 Thread phillc
look like: media/image/button.png" %}"> > > template tag code: > > @register.simple_tag > def get_file_version(arg): >     value = arg >     if arg in ASSET_LIST: >         value = ASSET_LIST[arg] + arg; >     return value > > The third option would b

media server implementation - context processor, custom template tag, or custom filter

2008-06-22 Thread alex
STATIC_ASSETS: value = STATIC_ASSETS[arg] + arg; else: value = arg; return value 2) simple custom template tag templates look like: template tag code: @register.simple_tag def get_file_version(arg): value = arg if arg in ASSET_LIST: value = ASSET_LIST[arg] +

Re: auth context processor setup

2008-06-22 Thread mcordes
That was it. Thanks! --~--~-~--~~~---~--~~ 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 PROTE

Re: auth context processor setup

2008-06-22 Thread Nick Sandford
On Sun, Jun 22, 2008 at 10:20 PM, mcordes <[EMAIL PROTECTED]> wrote: > > I seem to already have the auth middleware enabled too. From what I'm > seeing, generic views _do_ have the user object available in their > templates. It's just my custom views that don't automatically have > this. It's easy

Re: auth context processor setup

2008-06-22 Thread Vasiliy Gladkov
Maybe you forgot to use context_instance parameter in render() call? If you want to use context processors, it must look like return render_to_response('template.html', context, context_instance=RequestContext(request)) context_instance parameter passes contexts from processors to your templates

Re: auth context processor setup

2008-06-22 Thread mcordes
I seem to already have the auth middleware enabled too. From what I'm seeing, generic views _do_ have the user object available in their templates. It's just my custom views that don't automatically have this. It's easy enough for me to pass in the request.user object from each of my templates, bu

Re: auth context processor setup

2008-06-22 Thread Vasiliy Gladkov
; > Is there anything I need to do to enable the auth context processor > other than adding "django.core.context_processors.auth" to > TEMPLATE_CONTEXT_PROCESSORS in my settings.py? > > I'd like to be able to access the 'auth user' object in my various > te

auth context processor setup

2008-06-21 Thread mcordes
Hello, Is there anything I need to do to enable the auth context processor other than adding "django.core.context_processors.auth" to TEMPLATE_CONTEXT_PROCESSORS in my settings.py? I'd like to be able to access the 'auth user' object in my various templates, which fr

Re: Context processor a bit too helpful

2008-01-08 Thread James Bennett
On Jan 8, 2008 12:47 AM, Michael Hipp <[EMAIL PROTECTED]> wrote: > How do I say "no thanks" to this helpfulness so my html can to thru? By reading the Django template documentation, which covers this in some detail. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct

Re: Context processor a bit too helpful

2008-01-07 Thread Michael Hipp
,} >> >> I expected a *bold* word to show up in the browser, but instead here's >> what is sent: >> >>A <b>bold</b> word. >> >> So the angle brackets show up (literally) in the browser. >> >> How do I say &

Re: Context processor a bit too helpful

2008-01-07 Thread Simon Willison
up in the browser, but instead here's > what is sent: > >A <b>bold</b> word. > > So the angle brackets show up (literally) in the browser. > > How do I say "no thanks" to this helpfulness so my html can to thru? You can mark the string as "sa

Context processor a bit too helpful

2008-01-07 Thread Michael Hipp
Learning about context processors, I have one like this: def bold_word(request): html = "A bold word." return {'bold_word': html,} I expected a *bold* word to show up in the browser, but instead here's what is sent: A bold word. So the angle brackets show up (literally) in

Re: Context processor not loading

2007-11-01 Thread Marty Alchin
On 11/1/07, Jon Atkinson <[EMAIL PROTECTED]> wrote: > As I understand it, this is all I need to do to have the context > processor execute properly, however neither 'spam' is output to the > console (I'm using the ./manage.py server), nor is 'eggs', or the

Context processor not loading

2007-11-01 Thread Jon Atkinson
Hi, I'm having trouble with a context processor not running when I make a request. I've tried to reduce this to the simplest case I can: My projects tree is as follows: project/ context_processors/ __init__.py globals.py The file, 'globals.py', contains

Re: request.path in a context processor

2007-09-01 Thread Jeremy Dunck
On 9/1/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > > Hi, > Here I have a context processor --> http://dpaste.com/18402/ Context processors must return a dictionary. Maybe you want this: return {'base_path': list} ? Also, it's bad form to use variables nam

request.path in a context processor

2007-09-01 Thread Evan H. Carmi
Hi, Here I have a context processor --> http://dpaste.com/18402/ I have {{ base_path }} in one of my templates but it isn't returning anything. I am not sure if I can use request.path the way I am using it. Any ideas? Thanks, Evan --~--~-~--~~~---~--~-

What could cause settings.py invoked context processor to fail in 1 specific app?

2007-09-01 Thread TheMaTrIx
ren't loaded for that app. What can cause the context processor to forget what MEDIA_URL should be just for 1 app?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: context processor question

2007-07-19 Thread yml
Hello, Here it is the part of the documentation you are looking for: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext This is an extract of the part that you are looking: If you're using Django's render_to_response() shortcut to populate a templa

Re: context processor question

2007-07-18 Thread james_027
Hi Jeremy, I am a bit lost ... where do I apply that? Isn't that I just call the variable name/dict key in the template? Thanks james On Jul 19, 11:18 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 7/18/07, james_027 <[EMAIL PROTECTED]> wrote: > ... > > > the commonly use data will automati

Re: context processor question

2007-07-18 Thread Jeremy Dunck
On 7/18/07, james_027 <[EMAIL PROTECTED]> wrote: ... > the commonly use data will automatically available, do I get it right? > Yes. Just keep in mind that you need to use RequestContext rather than Context in order for context processors to be applied. --~--~-~--~~~---

context processor question

2007-07-18 Thread james_027
Hi, As I understand context are data we can use in our templates, and the purpose of context processor is instead of doing something like c = Context({ 'latest_poll_list': latest_poll_list, }) or return render_to_response('polls/index.html', {'latest_pol

Re: Trouble with custom context processor and model

2007-06-14 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 21:03 +, [EMAIL PROTECTED] wrote: > I have a custom context processor that is in my settings file, so it > is being called on each request. When making any request, I receive > the following error. > > Traceback (most recent call last): > File &qu

Trouble with custom context processor and model

2007-06-13 Thread [EMAIL PROTECTED]
I have a custom context processor that is in my settings file, so it is being called on each request. When making any request, I receive the following error. Traceback (most recent call last): File "c:\Python24\lib\site-packages\django\core\handlers\base.py" in get_response 77

Re: Creating a current path Context Processor

2007-06-06 Thread Evan H. Carmi
James Bennett wrote: > On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: >> I don't know how to pass the context processor with HttpResponse so my >> template can do the ifequal. If someone can send me in the right >> direction it would be glorious. > > H

Re: Creating a current path Context Processor

2007-06-03 Thread James Bennett
On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > I don't know how to pass the context processor with HttpResponse so my > template can do the ifequal. If someone can send me in the right > direction it would be glorious. Have a look at the documentation, which covers th

Creating a current path Context Processor

2007-06-03 Thread Evan H. Carmi
ifequal current path to the path the nav links to than this will have the class of nav_here. All the other nav links will have a class of nav_regular. (The specific names of these classes doesn't matter.) On the django IRC channel someone suggested that I use a Context Processor to do this. I a