FlaskMessage Flashing


Introduction

Flashing message to the template by flash() function.

Syntax

  • flash(message, category='message')
  • flash('hello, world!')
  • flash('This is a warning message', 'warning')

Parameters

messagethe message to be flashed.
categorythe message's category, the default is message.

Remarks