On Fri, Feb 27, 2009 at 1:35 PM, Dennis <dennisf...@gmail.com> wrote:
> > Clarification: this variable needs to be accessible from all views > (and middleware). > The variable is a status notification to be optionally printed at the > top of the returned response page. > > > > On Feb 28, 2:16 am, Dennis <dennisf...@gmail.com> wrote: > > I want a variable that I know will be re-initialized on each http > > request. > > I'm not sure how to do that. > > One idea is to create middleware that resets the variable on each > > request. > > Just wondering if there is a simplier solution. > > > You say it needs to be in each view, but if it's just something to put at the top of each page then where you really need it is in the template right? So it sounds like you want a template context processor. 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 -~----------~----~----~----~------~----~------~--~---