Re: base template and views

2008-06-26 Thread Eric Abrahamsen
Probably what you want is to make a custom template tag that does the proper query-to-html business, and then stick that tag in your base template. Might want to look into caching the result, if it doesn't change often... http://www.djangoproject.com/documentation/templates_python/#writing-

Re: base template and views

2008-06-26 Thread Peter Rowell
> Anyone know what I really ought to be doing? What you want is a default context. Look at http://www.djangoproject.com/documentation/templates_python/#playing-with-context-objects Also see http://www.djangoproject.com/documentation/settings/#template-context-processors. Pretty much all of our

base template and views

2008-06-26 Thread moonsand
I have a design issue where i want to have a standard base template display a list of database entries with a count for the most popular entries. If I am using this as the base template this means that I need to pass the list and the calculated count from any view which calls any template which ex