On Mon, Jun 29, 2009 at 10:43 PM, diogobaeder <diogobae...@gmail.com> wrote:
> > Alex, > > I'm trying to use the context processors, but I'm getting the > following error: > http://dpaste.com/61410/ > > Any idea of what it might be? > > Thanks! > > Diogo > > > > On Jun 26, 11:56 am, diogobaeder <diogobae...@gmail.com> wrote: > > Thanks, Alex, I'll give a look at these TEMPLATE_CONTEXT_PROCESSORS to > > see if they solve my problem... thanks a lot! :-) > > > > Diogo > > > > On Jun 26, 12:44 am, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > > > 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 ofobjects. > > > > > > Considering that I have a "base.html" that has these menus, how can I > > > > pass theobjectsto it, without having to fetch theobjectsin 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 aglobalmodel 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/1656392... > > > 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're passing RequestCOntext. WHat you need to do is pass RequestCOntext(request). 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 -~----------~----~----~----~------~----~------~--~---