On 8/6/2010 5:03 PM, kostia wrote: > I have a footer on my site. It has to be filled in with data which > comes from the database. Each view will have to load this common > footer data. How can I organise such a behaviour in my views.py file? > > I guess it is a separate function, but I'm django newbie, so please, > keep your pulse. > The usual way to do this is by using a context processor. This is very well explained in the following bog post by James Bennett:
http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/ regards Steve -- I'm no expert. "ex" == "has-been"; "spurt" == "drip under pressure" "expert" == "has-been drip under pressure". -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.