この質問は以前に尋ねられましたが、答えられていないようです。そこで再度質問です。
Python を使用する Google App Engine では、アプリケーションのルートの下に と の 2 つのディレクトリが/templates
あり/static/files
ます。base.html
が in で/templates
、次のテンプレート ステートメントが含まれているとします。
{% include "privacy.html" %}
privacy.html
fileが directory にもある場合、上記のステートメントは機能します/templates
。ただし、privacy.html
を directory に移動する/static/files
と、次のステートメントは機能しません (何も含まれません)。
{% include "/static/files/privacy.html" %}
なぜ、どのように問題を解決するのですか?ありがとう。