Web.py

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Webpy移动到Web.py)
第22行: 第22行:
 
  cd templates
 
  cd templates
 
  touch index.html
 
  touch index.html
+
==User==
 +
*http://www.youos.com
 +
*http://delaunay.org/antoine/i , [http://trac.delaunay.org/browser/srv/www.delaunay.org/antoine/i/ source]
  
 
[[Category:Web application frameworks]]
 
[[Category:Web application frameworks]]

2007年2月24日 (六) 22:47的版本

http://webpy.org/

Install

wget http://webpy.org/web.py-0.2.tar.gz
python setup.py install // install to /usr/local/lib/python2.4/site-packages/web
touch code.py
import web
urls = (
  '/', 'index'
)
class index:
 def GET(self):
   print "hello, webpy"

if __name__ == "__main__": web.run(urls, globals())

python code.py
http://localhost:8080/ :)

Template

mkdir templates
cd templates
touch index.html

User

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱