首页 > 学院 > 开发设计 > 正文

django1.6之template基础用法

2019-11-14 17:46:59
字体:
来源:转载
供稿:网友

>>> settings.configure()
>>> tem=template.Template("my template is {{name}}")
>>> con = template.Context({"name":"xiaoji"})
>>> t = tem.render(con)
>>> PRint(t)
my template is xiaoji
>>>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表