Differences between revisions 1 and 2
Revision 1 as of 2009-09-30 06:13:31
Size: 691
Comment:
Revision 2 as of 2009-09-30 06:17:58
Size: 703
Comment:
Deletions are marked like this. Additions are marked like this.
Line 46: Line 46:
访问 http://localhost:5000 即可。 访问 http://localhost:5000/hello/index 即可。

题目要求

写一个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)