Skip to main content

Easily add outdated-browser project to your Flask application

Project description

A simple way to add outdated browser to your Flask project using python code.


In flask add:

from flask_outdated_browser import OutdatedBrowser

# regular way of initializing

#it also handles Flask factory pattern
outdated = Outdated()


Configuration Variables

The extension can handle the following configuration options that follow the original project capabilities

Browser support version

Determines which version of IE will be the first supported version for your app.

  • app.config[“OUTDATED_BROWSER_FOR”], defaults to “IE10”, accepts all the original project parameters.

Jquery Usage

Sets if jquery is used or not.

app.config[“OUTDATED_BROWSER_JQUERY”], defaults to False

AJAX support

Determines if AJAX is used for script rendering.

app.config[“OUTDATED_BROWSER_AJAX”], defaults to False

Minified files

Determines if the .js and .css files are minimized or not.

app.config[“OUTDATED_BROWSER_MINIFIED”], defaults to True

Language to display

Accepts any outdatedbrowser language. It will be used to call the proper template.

app.config[“OUTDATED_BROWSER_LANGUAGE”], defaults to “en”

Usage in templates

since usually the developer wants to have control of their base.html file, or is ussing a framework like Boostratp or zurb Foundation, I dediced the best sensible way to add the outdated browser code snippets would be macros.

to use it just add the following to your jinja2 templates:

{% import "outdated/macros.html" as outdated %}

<!-- In your header styles -->
{{ }}

<!-- in your body (just anywhere) -->
{{ outdated.init() }}

<!-- in your footer scripts, after jquery if you turned it on -->
{{ outdated.script() }}

Project details

Release history Release notifications

This version


Download files

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

Files for Flask-outdated-browser, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size Flask-outdated-browser-0.1.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page