code: def init_app(self, app):
          
          self.init_config(app)
          app.cli.add_command(cmd)
          app.extensions['invenio-communities'] = self
          # Register the jinja do extension
          app.jinja_env.add_extension('jinja2.ext.do')
          self.register_signals(app)
docs: Flask application initialization.