Global "messages" when using flash() #150

eddiehl opened this Issue Dec 12, 2010 · 2 comments


None yet

2 participants


When using the flash() function I use get_flashed_messages() in the template for display. Today when attempting to use the variable "messages" in my template I found the flashed messages are exposed there as a global in the templates. That's probably ok but unless I missed it, this is not documented in the flash() documentation: or the jinja context here:

My "messages" were hidden completely by the (empty) flash messages until I realized what might be happening.

Anyhow, thanks for the great tools!

The Pallets Projects member

Can't reproduce that, how is it exposed besides get_flashed_messages()? Of course it will also be on the session object but that will not clear the list after usage.


ugh. closed.

I had stupidly used set messages = get_flashed_messages and screwed myself.

Public flogging at 02:00UTC

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment