Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

flash plugin for bottle

Project Description


This plugin enables flash messages in bottle. Again, learn by example


from bottle import Bottle
from bottle_flash import FlashPlugin

app = Bottle()
COOKIE_SECRET = 'super_secret_string'
def create_user():
# Create the user
app.flash('Created !')

To consume the flashed messages, you would do something like the following (jinja2). Here I am assuming that I get the "app" in the template context. This can be achieved with the bottle_renderer_ plugin.


{% set messages = app.get_flashed_messages() %}
{% if messages %}
<div id="flash_messages">
{% for m in messages %}
<li>{{ m[0] }}</li>
{% endfor %}
{% endif %}

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(1.7 kB) Copy SHA256 Hash SHA256
Source None Sep 16, 2011

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers