Quixote (web框 架 )
![本页使用了标题或全文手工转换](https://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Zh_conversion_icon_m.svg/35px-Zh_conversion_icon_m.svg.png)
Andrew Kuchling, Neil Schemenauer | |
2000 | |
| |
编程语言 | Python |
类型 | Web应用 |
许可协议 | MIT许可证 |
网站 | quixote |
Quixote
Quixote应用
演 示 代 码
[编辑]$ python demo/mini_demo.py
。这个localhost:8080
。调试
from quixote.publish import Publisher
from quixote.directory import Directory, export
class RootDirectory(Directory):
@export(name='')
def index(self):
return '''<html>
<body>Welcome to the Quixote demo. Here is a
<a href="hello">link</a>.
</body>
</html>
'''
@export
def hello(self):
return '<html><body>Hello world!</body></html>'
def create_publisher():
return Publisher(RootDirectory(),
display_exceptions='plain')
if __name__ == '__main__':
from quixote.server.simple_server import run
print('creating demo listening on http://localhost:8080/')
run(create_publisher, host='localhost', port=8080)
参 见
[编辑]引用
[编辑]- ^ CHANGES_24.txt. [2021-03-12]. (
原始 内容 存 档于2020-01-19). - ^ Quixote (页面
存 档备份,存 于互联网档案 馆) is a web application framework developed and first released by the MNX in 2000 (or 2001). - ^ Release 3.6. 2022
年 6月 23日 [2022年 10月 26日 ]. - ^ The Quixote Web Framework. [2021-03-12]. (
原始 内容 存 档于2022-02-02). - ^ Quixote: a Python-Centric Web Application Framework (页面
存 档备份,存 于互联网档案 馆), 22 July 2002, By Greg Ward, Linux Journal
外部 链接
[编辑]
|
![]() | 这是 |