我们有基于此link的Airflow自定义UI,它与Airflow 1.9.0一起运行良好 . 在此之后,我们升级到1.10.1并启用了RBAC . 我们的自定义UI在此之后停止了 .
我们按照这个解释note-on-role-based-views并尝试将旧的UI模板与appbuilder_views一起使用 . 在使用/tests/plugins/test_plugin.py中的TestAppBuilderBaseView时,
class TestAppBuilderBaseView(AppBuilderBaseView):
@expose("/")
def test(self):
return self.render("test_plugin/test.html", content="Hello galaxy!")
我们得到菜单和链接,但点击后我们得到错误
对象没有属性'render'
将此更改为
return self.render_template("test_plugin/test.html",content="Hello galaxy!")
我们得到了错误
jinja2.exceptions.TemplateNotFound:test_plugin / test.html
我已经尝试了所有可能的组合放置模板文件夹和html文件,但仍然是相同的错误 .
我找到一些论坛告诉他们在Blueprint上启用调试 . 但我不知道你如何使用Airflow做到这一点
对此有何指导?
提前致谢
Jeenson