# encoding=utf-8 from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "Hello World!"
# encoding=utf-8 from flask.ext.script import Manager from app.app import app manager = Manager(app) app.config[‘DEBUG‘] = True if __name__ == ‘__main__‘: manager.run()
本文出自 “专注linux” 博客,请务必保留此出处http://forlinux.blog.51cto.com/8001278/1420973
原文地址:http://forlinux.blog.51cto.com/8001278/1420973