Django教程
来源:互联网 发布:手机淘宝5.6.0 编辑:程序博客网 时间:2024/05/21 15:54
Django教程:[13]如何使用模板系统:
Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> from django.conf import settings>>> settings.configure()>>> from django import template >>> tem=template.Template('My telnum is {{num}}.')>>> con=template.Context({'num':'2131234'})>>> t=tem.render(con)>>> print tMy telnum is 2131234.>>>
0 0
- Django教程
- Django教程
- Django 教程
- Django 教程
- Django 教程
- Django教程之一-----Django一瞥
- django 与ajax教程
- python Django 教程
- django south 使用教程
- Django-Rest-Framework 教程
- Django 学习教程
- Python Django学习教程
- pathon+Django 安装教程
- 安装Django教程
- Django新手图文教程
- django模板使用教程
- Django新手图文教程
- Django新手图文教程
- tab的实现微信界面
- 第十章 Introducing Python Statements
- May Day Holiday【The 12th Zhejiang Provincial Collegiate Programming Contest】
- C++文件操作(二)
- ubuntu安装python-sicpy包依赖的问题解决
- Django教程
- window平台下mongodb权限设置
- 吹泡泡之路(2015.4.25)
- 基于c#的IE 代理服务器设置
- java+jsp网页制作总结(2)
- MySQL 最基本的SQL语法,语句
- 迷茫的心情整理
- Ubuntu 下安装并配置 TeXLive
- Creating custom and compound Views in Android - Tutorial(翻译)