I have this directory structure:
root: +pages -base.html ... +en -index.html ... index.py ...
when i output index.html from index.py it says it cannot find base.html
this is the tag i used in index.html to extend base.html:
{% extends "../base.html" %}
this is the code in index.py:
path = os.path.join(os.path.dirname(__file__), 'pages/it/index.html') self.response.out.write(template.render(path, template_values))
what would be the right way? I am using google webapp and djagno templates.
source share