Differences between revisions 2 and 3
Revision 2 as of 2009-09-30 06:17:58
Size: 703
Comment:
Revision 3 as of 2009-12-25 07:16:35
Size: 703
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

题目要求

写一个Hello,world程序,带有环境安装说明

框架说明

Pylons (http://pylonshq.com)

安装

环境要求

  • python 2.5, python 2.6
  • setuptools 0.6c9

安装

easy_install Pylons

步骤

在命令行下操作

1. 创建Project1项目

paster create -t pylons project1

2. 创建Hello App

cd project1
paster controller hello

3. 结束

因为Pylons在创建一个controller时会自动带一个Hello World的示例

测试

cd project1
paster serve --reload development.ini

访问 http://localhost:5000/hello/index 即可。

PylonsHelloWorld (last edited 2009-12-25 07:16:35 by localhost)