Quixote学习笔记(1)

Running the Quixote Demos

Quixote comes with some demonstration applications in the demo directory. After quixote is installed (see INSTALL.txt for instructions), you can run the demos using the scripts located in the server directory.

Each server script is written for a specific method of connecting a quixote publisher to a web server, and you will ultimately want to choose the one that matches your needs. More information about the different server scripts may be found in the scripts themselves and in web-server.txt. To start, though, the easiest way to view the demos is as follows: in a terminal window, run server/simple_server.py, and in a browser, open http://localhost:8080.

The simple_server.py script prints a usage message if you run it with a '--help' command line argument. You can run different demos by using the '--factory' option to identify a callable that creates the publisher you want to use. In particular, you might try these demos:

simple_server.py --factory quixote.demo.mini_demo.create_publisher

or

simple_server.py --factory quixote.demo.altdemo.create_publisher


一开始看的是官网的 Tutorial,弄了很长时间,其间将Python和Quixote各版本都试过了,还是不成功。
正在灰心失望的时候,突然想起有人说,安装目录下的doc里有教程,拿来一试,居然看到了。哈哈!
下面是步骤,很简单,在Windows XP下:
  1. 打开doc下的demo.html文件,看第一段Running the Quixote Demos。
  2. 打开doc下的install.txt文件,看完。
  3. 安装Python,因为Quixote的要求,需要2.3版本以上,这次我装的是2.3.5。下载地址
  4. 修改环境变量PATH,在我的电脑-属性-高级里,添加Python的安装目录。
  5. 安装Quixote,这次我装的是2.4,安装的方法install.txt里有。下载地址
  6. 还是按照install.txt里写的,打开命令行,进入Quixote安装目录,输入python server/simple_server.py,或者进入server目录,输入simple_server.py,这时候没有任何反应,不要着急,打开IE或者Firefox浏览器,输入http://localhost:8080,看到什么了?这时候再返回命令行,又看到什么了?
  7. 呵呵,恭喜,已经成功运行一个Quixote程序啦!按照demo.html里的内容往下继续吧!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值