On Thu, Jun 25, 2009 at 10:42 PM, diogobaeder <diogobae...@gmail.com> wrote:
> > Let me explain myself better: I have some menus in my site, and they > appear all along the front-end pages. One of these menus must have a > list of objects. > > Considering that I have a "base.html" that has these menus, how can I > pass the objects to it, without having to fetch the objects in each > view of the site? > > Thanks! > > Diogo > > > > On Jun 25, 8:39 pm, Diogo Baeder <diogobae...@gmail.com> wrote: > > Hi, > > > > I'm trying to set up a global model object list, to populate a part of a > > menu in my site. How can I do it? How can I instantiate the model object > > list, so that it is available to all the views? > > > > Thanks! > > > > Diogo > > > See my answer in this thread: http://groups.google.com/group/django-users/browse_frm/thread/1656392a27d97e8a#the same techniques should work for you. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---