Flask Message Flashing

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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



Got any Flask Question?