欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Quixote
来自开放百科 - 灰狐
(版本间的差异)
第12行: | 第12行: | ||
python -c "import os, quixote; print os.path.dirname(quixote.__file__)" // 检查是否已有quixote安装 | python -c "import os, quixote; print os.path.dirname(quixote.__file__)" // 检查是否已有quixote安装 | ||
− | python setup.py install | + | python setup.py install // quixote 安装到 :/usr/lib/python2.3/site-packages/quixote |
python server/simple_server.py | python server/simple_server.py | ||
http://localhost:8080 | http://localhost:8080 | ||
与Apache的整合 | 与Apache的整合 | ||
+ | 相关细节: /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> | ||
==成功应用== | ==成功应用== |
2006年10月7日 (六) 21:10的版本
Quixote is yet another framework for developing Web applications in Python.
对于robust, quixote是经过大规模实际应用检验的, douban.com的主要动力就是它.
安装指南
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 python server/simple_server.py http://localhost:8080
与Apache的整合
相关细节: /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>
成功应用
相关链接
分享您的观点