Django: An example of Django template
>>> from django.template import Template, Context
>>> from django.conf import settings
>>> settings.configure()
>>> t = Template('My name is {{ my_name }}.')
>>> c = Context({'my_name': 'Daryl Spitzer'
原创
2015-05-31 11:20:10 ·
501 阅读 ·
0 评论