简体   繁体   中英

Django TemplateDoesNotExist on Google App Engine

I keep getting TemplateDoesNotExist and I can't figure out how to debug it. I've added the folder in which the template sits into the TEMPLATE_DIRS tuple and when I call get_template from within my .py file, the template loads fine, however when I call it from within a template fine using the extends tag, it raises TemplateDoesNotExist .

The template file isn't under a static_files path in the app.yaml .

What confuses me is why it loads fine with get_template but not with extend .

Is there a way I can find out the path in which Django is looking?

You might try:

from django.conf import settings
print settings.TEMPLATE_DIRS

to see the used template dir path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM