On Wednesday 02 September 2009 07:03:04 pm richardcur...@googlemail.com wrote: > Hi, > > I want to use two 'global' variables in all pages. Obviously I don't > want to put the same variable in all template dictionaries. > > Is there a simpler way to have something like 'global' variables in > Django? > > Thanks.
You want to look at template context processors [1], this is about the best you'll get for what you want. [1] http://docs.djangoproject.com/en/dev/ref/templates/api/#id1 Mike -- Elbonics, n.: The actions of two people maneuvering for one armrest in a movie theatre. -- "Sniglets", Rich Hall & Friends
signature.asc
Description: This is a digitally signed message part.