ルートディレクトリのサブディレクトリ「static」にhtmlファイル「listagem.html」があります。「listagem.html」をjinja2のテンプレートとして使いたいです。
これらの3つの結合式を試しました:
初め:
jinja_environment = jinja2.Environment(
autoescape = True,
loader = jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'static')))
2番:
jinja_environment = jinja2.Environment(
autoescape = True,
loader = jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'static/')))
三番:
jinja_environment = jinja2.Environment(
loader = jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), '/static')))
template = jinja_environment.get_template('listagem.html')
self.response.out.write(template.render(template_values))
このエラーを受け取りました:
file not accessible: 'C:\\Users\\Me\\AppEngine\\MyAppRoot\\static\\listagem.html'
私は何を間違っていますか?
助けを求める戦車。