さくらでFlaskをCGIで動かすには。 まずなにはともあれHello Flaskということで # -*- encoding: utf-8 -*- from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello Flask World!" ''' if __name__ == "__main__": app.debug = True app.run() '''続けてCGI #!/home/path2yourVirtualenv/bin/python # -*- encoding: utf-8 -*- from wsgiref.handlers import CGIHandler from helloFlask import app CGIHandler().run(app) .