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' is causing a db hit - i.e, the 'if
clause above - is it possible to avoid this db hit?

-V
http://blizzardzblogs.blogspot.com/

-- 
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.

Reply via email to