I'm studying the python framework Flask.
I don't know the structure, but it works without an HTTP server. By the way, I'm weak and I run it on virtualenv as it is on the official site.
http://a2c.bitbucket.org/flask/
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "index page"
@app.route("/<username>")
def show_name(username):
return "hello " + username
app.run()
Postscript I'm running on debian 6.0.6 linux don't know
Recommended Posts