随笔分类 -  Bottle

Bottle is a light-weight web framework which only depends on the original python packages. Other kinds of ORM, template engine, user associating management system, WSGI-middleware can be added into a bottle project which would run syntactically. Here I will write down those useful information while I am learning this light-weight framework. Enjoy :)
摘要:I spent several days on building a system about this. And make it work well with serveral thousand lines of codes. 阅读全文
posted @ 2014-02-27 10:46 spaceship9 阅读(302) 评论(0) 推荐(0) 编辑
摘要:pythonbottle framework#!/usr/bin/python# -*- coding utf-8 -*-from bottle import route, run, debug, request#from cgi import escape@route('/hello', method='GET')def hello(): name = request.GET.get('name') if not name: name = "This guy's unknow :(" return 'Hell 阅读全文
posted @ 2013-06-24 17:45 spaceship9 阅读(604) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示