欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Quixote
来自开放百科 - 灰狐
(版本间的差异)
第21行: | 第21行: | ||
http://localhost:8080 | http://localhost:8080 | ||
与Apache的整合 | 与Apache的整合 | ||
+ | #apt-get install apache2-dev 安装 apxs2 , apxs 针对 Apache 1.x | ||
+ | |||
+ | 获得 http://www.apache.org/dist/httpd/modpython/mod_python-3.2.10.tgz | ||
+ | ./configure --with-apxs=/usr/bin/apxs2 | ||
+ | make | ||
+ | make install | ||
vi /etc/apache2/sites-enabled/000-default | vi /etc/apache2/sites-enabled/000-default | ||
相关细节: /usr/lib/python2.3/site-packages/quixote/server/mod_python_handler.py | 相关细节: /usr/lib/python2.3/site-packages/quixote/server/mod_python_handler.py |
2007年2月4日 (日) 13:27的版本
Quixote is yet another framework for developing Web applications in Python.
对于robust, quixote是经过大规模实际应用检验的, douban.com的主要动力就是它.
目录 |
在线演示
http://demo.huihoo.com/quixote
安装指南
Debian用户
# apt-get install quixote
其它用户
获得 quixote http://quixote.python.ca/releases/Quixote-2.4.tar.gz tar zxvf Quixote-2.4.tar.gz cd Quixote-2.4 python -c "import os, quixote; print os.path.dirname(quixote.__file__)" // 检查是否已有quixote安装 python setup.py install // quixote 安装到 :/usr/lib/python2.3/site-packages/quixote 或 /usr/local/lib/python2.4/site-packages/quixote/server/ // 使用了 Python 2.4 或 /usr/local/lib/python2.5/site-packages/quixote/server/ // 使用了 Python 2.5 python server/simple_server.py http://localhost:8080
与Apache的整合
#apt-get install apache2-dev 安装 apxs2 , apxs 针对 Apache 1.x 获得 http://www.apache.org/dist/httpd/modpython/mod_python-3.2.10.tgz ./configure --with-apxs=/usr/bin/apxs2 make make install vi /etc/apache2/sites-enabled/000-default 相关细节: /usr/lib/python2.3/site-packages/quixote/server/mod_python_handler.py LoadModule python_module /usr/lib/apache2/modules/mod_python.so <LocationMatch "^/quixote(/|$)"> SetHandler python-program PythonHandler quixote.server.mod_python_handler PythonOption quixote-publisher-factory quixote.demo.create_publisher PythonInterpreter quixote.demo PythonDebug On </LocationMatch> /etc/init.d/apache2 restart http://localhost/quixote
成功应用
相关链接
分享您的观点