django template出错
摘要:
解决方法一:先导入settings>>> from django.conf import settings>>> settings.configure()>>> from django import template>>> t = template.Template('My name is {{ name }}.')>>> c = template.Context({'name': 'yixiaohan'})>>> print t.rend 阅读全文
posted @ 2014-03-02 15:42 颓废的悠然 阅读(258) 评论(0) 推荐(0) 编辑