BLOG
Enjoy when you can, and endure when you must.
DEC 15, 2012/Django
Django的Context和RequestContext
     t = Template('My name is {{ name }}.') c = Context({'name': 'Stephane'}) t.render(c)Django的模板渲染中,Context可以用来传递数据,一个Context是一系列变量和值的集合,它和Python的字典有点相似。context在Django里表现为Context类,在django.template...
1