【发布时间】:2010-11-08 02:12:28
【问题描述】:
现在 Google App Engine 原生支持 Django 1.0,我使用以下代码进行了更新:
从 google.appengine.dist 导入 use_library
use_library('django', '1.0')
我现在收到与模板继承有关的模板错误。
例如,如果我有:
{% 扩展“../base.html” %}
引用父目录中的 base.html,这在 Django 0.96 中按预期工作,但 Django 1.0 无法找到引用的模板。
Django 文档 (http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance) 不要提及版本之间的任何差异......
【问题讨论】:
-
+1 哇,您的问题和接受的答案让我至少省了一个小时的头痛。谢谢!
标签: django google-app-engine inheritance templates