Plugins¶
Installing Plugins¶
The dashboard’s functionality can easily be extended with blueprints. Copy
the blueprint you want to add into `datman-dashboard/dashboard/blueprints
and restart uwsgi to complete installation. The blueprint itself should document
any new environment variables to set, python packages to install, or databases
to create.
Creating a Plugin¶
To create your own blueprint you should do the following:
Define a flask blueprint
Define a
register_bp
function that accepts an app object and, at a minimum, callsapp.register_blueprint(your_bp_here)
. This function is an ideal place to add any configuration your plugin needs to theapp.config
dictionary. It’s also where you’d want to add any alternate databases to theapp.config['SQLALCHEMY_BINDS']
dictionary