Previous topic

app module

Next topic

helpers module

This Page

ext module

Good place for pluggable extensions.

I’ve found it neat to define all extensions separately and bind them to the application at runtime.

Unfortunately, it’s possible if extension provides init_app() method only. But for some not-so-smart extensions there is some workaround.

Look into the file for examples.

copyright:(c) 2012 by Roman Semirook.
license:BSD, see LICENSE for more details.
ext.assets = <flask_assets.Environment object at 0x39ff950>

The Flask-Assets Environment to be later registered.

ext.db = <SQLAlchemy engine=None>

Our Flask-SQLAlchemy database object

ext.gravatar(app)
ext.login_manager = <flask_login.LoginManager object at 0x420c090>

Flask-Login manager object

ext.toolbar(app)