Re: Avoid DB hit while using messages

2011-07-05 Thread Russell Keith-Magee
On Wed, Jul 6, 2011 at 2:16 AM, Venkatraman S wrote: > > I am showing messages using the messaging framework; so i check if there are > any messages in my base.html (i.e, {% if messages %} ) and if yes i show the > messages with suitable styling. > Messages are being rendered fine and i do not hav

Avoid DB hit while using messages

2011-07-05 Thread Venkatraman S
I am showing messages using the messaging framework; so i check if there are any messages in my base.html (i.e, {% if messages %} ) and if yes i show the messages with suitable styling. Messages are being rendered fine and i do not have any problem with that. But i see that , accessing 'messages'