18910140161

Python-Mako顶级查找异常-堆栈溢出

顺晟科技

2022-10-18 12:34:47

35

我必须在我的Mako模板中包含CSS.我尝试了这个示例代码,但我得到这个错误,我不知道为什么?

<块引用>获取_模板中的第

262行引发异常。Mako.Exceptions.TopLevelLookupException:找不到URI的模板“表格_设计”

lookup = TemplateLookup(directories=['.', '/Programs/Python/Python39/templates'])

try:
    template = lookup.get_template('table_design.css')
    print(template.render())
except:
    print(exceptions.text_error_template().render()) 

顺晟科技:

  • TAG:
相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航