親アプリと同じディレクトリにあるhtmlを読み込みたいです。
今、ディレクトリの状態は
のようになっていてtemplates/pollsの中にあるbase.htmlで
{% extends "./base.html" %} {% block nav_polls %}active{% endblock %}
と書いていてこのextends の"./base.html”で親アプリと同じディレクトリにあるbase.htmlを読み込みたいです。
TemplateSyntaxError at /polls/ The relative path '"./base.html"' was translated to template name 'polls/base.html', the same template in which the tag appears.
と今templates/pollsの中にあるbase.htmlを実行すると出ました。
{% extends "../base.html" %}
と書くと、
TemplateDoesNotExist at /polls/ base.html
と出ました。
おそらくディレクトリ指定が間違っているとは思いますが、
どう直せば良いのでしょうか?
あなたの回答
tips
プレビュー