from demo_app import all_route_dict from web_framework.server import configured_wsgi_app # app 是一个配置好的函数 wsgi_app(environ, start_response) app = configured_wsgi_app(all_route_dict())
from demo_app import all_route_dict from framework.server import run if __name__ == '__main__': # 生成配置并且运行程序 config = dict( host='localhost', port=3000, ) run(host='localhost', port=3000, route=all_route_dict()) l