Module collectives#

Module containing the whole collectives Flask application

This file is the entry point to build the collectives Flask application. It imports all the submodule and contains the application factory.

Typical usage example:

import collectives
collectives.create_app().run(debug=True)
class collectives.ReverseProxied(app)

Wrapper around WSGI environ to make Flask aware of actual proxy url scheme

collectives.create_app(config_filename='config.py', extra_config=None)

Flask application factory.

This is the flask application factory for this project. It loads the other submodules used to runs the collectives website. It also creates the blueprins and init apps.

Parameters
  • config_filename (string) – name of the application config file relative to instance/.

  • extra_config (dict) – Additionnal configuration not in the config file

Returns

A flask application for collectives

Return type

flask.Flask