def init_app(self, app):
if not hasattr(app, "<STR_LIT>"):  <EOL><INDENT>app.extensions = {}<EOL><DEDENT>app.extensions["<STR_LIT>"] = self<EOL>@app.before_request<EOL>def start_context(*a, **k):<EOL><INDENT>self.overrides.push(Override())<EOL>self.additional.push(Additional())<EOL><DEDENT>@app.after_request<EOL>def cleanup(response):<EOL><INDENT>self.clear_all_overrides()<EOL>self.clear_all_additional()<EOL>return response<EOL><DEDENT>
Initializes the Flask-Allows object against the provided application