Support Flask 0.11+ (no deprecation warnings anymore)
flask-color-extended is an extension for Flask that improves the built-in web server with colors when debugging.
Differs from original library (https://github.com/Teemu/flask-color) by including current time and overall response time. Also supports new Flask versions.
You can install this using pip.
$ pip install flask-color-extended
There's an example of use in sample.py. Add two lines to your code:
# Import this extension
from flask_color_extended import color
# Initialize extension with your app.
color.init_app(app)
Flask configuration DEBUG must be True for this extension to function. You can override this by setting COLOR_ALWAYS_ON true.
- COLOR_ALWAYS_ON: Force extension on even if not in DEBUG mode
- COLOR_PATTERN_GRAY: Regular expression that matches static file requests (these requests are marked with gray color)
- COLOR_PATTERN_HIDE: Hides (fully) requests that match this regular expression.