Re: Add message each page load

2010-04-02 Thread Reiner
Are you using the develoment server? Is your static media served by django? If yes, I guess that your middleware might be called several times each page load, for every image/js/css etc. On Mar 31, 1:54 am, Wiiboy wrote: > >  - have you enabled the messages' context

Re: Add message each page load

2010-03-30 Thread Wiiboy
>  - have you enabled the messages' context processor? Yes >  - are you consuming the 'messages' variable in your templates? UmmYes? I'm displaying one message, but only 1, since I'm only setting 1 per request. That's probably the issue, but why is more than one message being set per

Re: Add message each page load

2010-03-30 Thread Rolando Espinoza La Fuente
On Tue, Mar 30, 2010 at 6:33 PM, Wiiboy wrote: > Hi guys, > How do I add a message (Django 1.2 style) each page load, and have it > cleared after the request? > > I set up a middleware running on process_request, but I end up with a > bunch of messages in the admin interface.

Add message each page load

2010-03-30 Thread Wiiboy
Hi guys, How do I add a message (Django 1.2 style) each page load, and have it cleared after the request? I set up a middleware running on process_request, but I end up with a bunch of messages in the admin interface. My code: class BetaMessageSet(object): def process_request(self, request):