Re: Print "flash" messages in templates for certain levels

2011-04-30 Thread Kenny Meyer
> Or is there other better solution? I think you should handle this in the view, like checking there if the user has sufficient privileges for seeing the message. Kenny -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Print "flash" messages in templates for certain levels

2011-04-30 Thread veena
Hi, django.contrib.messages is very handy and useful app. When I use it in template I'd like to print in one place in template only messages with certain level. That's not possible as I can understand it. You can print all of them (as described in documentation): {% if messages %} {% for mess

Re: flash messages

2006-08-09 Thread Alan Green
On 8/10/06, a <[EMAIL PROTECTED]> wrote: > > how do we display flash messages in django Dear a, For logged in users, try the Message facility, which is documented here: http://www.djangoproject.com/documentation/authentication/#messages Otherwise, you can place strings into the us

flash messages

2006-08-09 Thread a
how do we display flash messages in django The todo "Todo object" was deleted successfully. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e