Django Book 翻译
菜单>:
TOC
返回
原文:
* *A template cannot call raw Python code* . Theres no way to drop into Python mode or use raw Python constructs. Again, its possible to write custom template tags to do this, but the stock Django template tags dont allow it.
翻译:
* *模板中不能调用任何的Python代码* 。不存在转入 Python 模式或使用原生 Python 数据结构的方法。和前面一样,可以编写自定义模板标签来实现这个目标,但正統的 Django 模板标签做不到。
备注:
译者: