def init_app(self, app, *panels): Service.init_app(self, app) with app.app_context(): self.setup_blueprint(app) for panel in panels: self.register_panel(panel)
def init_app(self, app): Service.init_app(self, app) app.register_jinja_loaders(jinja2.PackageLoader(__name__))
def init_app(self, app): Service.init_app(self, app) app.register_jinja_loaders(jinja2.PackageLoader(__name__, 'templates'))