Templatedoesnotexist On Python App-engine Django 1.2 While Template Rendering Absolute Paths
Solution 1:
I had some similar issues, with some fixes which I describe here:
App engine default Django version change
When you use app engine's template.render
it sets the TEMPLATE_DIRS
to the directory of the template you are rendering. The extends
tag in Django 1.2 checks that the templates being included are inside the TEMPLATE_DIRS
directory. If they are in a parent (or sibling) directory then it fails.
The solution to this that I found was to not use app engine's template.render
, and instead write my own using Django's Template class. I then also had to set TEMPLATE_DIRS
to the root of my project directory.
This is going from my memory of how it was in 1.4.2, when I first looked into this - the behaviour might have changed since (although my workarounds still work fine).
Post a Comment for "Templatedoesnotexist On Python App-engine Django 1.2 While Template Rendering Absolute Paths"