Flask Message Flashing - get_flashed_messages()


Flask Tip

In Flask, the get_flashed_messages() method is used to retrieve all the flash messages (from the session).

👇

<!-- flash messages -->
{% for message in get_flashed_messages() %}
  <p>{{ message }}</p>
{% endfor %}