Web.py

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第1行: 第1行:
 
[[Image:webpy.png|right]]
 
[[Image:webpy.png|right]]
 
"[[Django]] lets you write web apps in Django. [[TurboGears]] lets you write web apps in TurboGears. Web.py lets you write web apps in [[Python]]." - Adam Atlas
 
"[[Django]] lets you write web apps in Django. [[TurboGears]] lets you write web apps in TurboGears. Web.py lets you write web apps in [[Python]]." - Adam Atlas
 
http://webpy.org/
 
  
 
==Install==
 
==Install==
第40行: 第38行:
 
*http://www.youos.com
 
*http://www.youos.com
 
*http://delaunay.org/antoine/i , [http://trac.delaunay.org/browser/srv/www.delaunay.org/antoine/i/ source]  
 
*http://delaunay.org/antoine/i , [http://trac.delaunay.org/browser/srv/www.delaunay.org/antoine/i/ source]  
 +
==Links==
 +
*http://webpy.org/
 +
*http://download.huihoo.com/webpy/
 +
*http://docs.huihoo.com/webpy/
  
 
[[Category:Web application frameworks]]
 
[[Category:Web application frameworks]]

2008年2月25日 (一) 14:26的版本

Webpy.png

"Django lets you write web apps in Django. TurboGears lets you write web apps in TurboGears. Web.py lets you write web apps in Python." - Adam Atlas

目录

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 = (
  '/hello/webpy', 'index'
)
class index:
 def GET(self):
   print "hello, webpy"

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

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

Build on Python 2.3

File "utils.py", line 528
   return .join(c for c in str(string).split('.')[0] if c.isdigit())
change to return .join([c for c in str(string).split('.')[0] if c.isdigit()]) 
python setup.py install // ok :)

Template

mkdir templates
cd templates
touch index.html

User

So what Python framework did you use?

web.py, the web application framework of choice for discriminating hackers. web.py is itself built upon Cheetah. The data is stored in a PostgreSQL database and served by Lighttpd.

Links

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

变换
操作
导航
工具箱