App configuration
These functions help configure an app during startup.
-
class coaster.app.SandboxedFlask(import_name, static_path=None, static_url_path=None, static_folder='static', template_folder='templates', instance_path=None, instance_relative_config=False)[source]
Flask with a sandboxed environment.
-
create_jinja_environment()[source]
Creates the Jinja2 environment based on jinja_options
and select_jinja_autoescape(). Since 0.7 this also adds
the Jinja2 globals and filters after initialization. Override
this function to customize the behavior.
-
coaster.app.init_app(app, env)[source]
Configure an app depending on the environment.