screen flash category

  • Flask â Message Flashing - tutorialspoint

    flash(message, category) Here, message parameter is the actual message to be flashed. category parameter is optional. It can be either 'error', 'info' or 'warning'. In order to remove message from session, template calls get_flashed_messages(). get_flashed_messages(with_categories, category_filter) Both parameters are optional.