摘要:
由http://www.cnblogs.com/steinliber/p/5133386.html 中可得服务器会把environ和start_response发送给Flask的实例app,返回的是app中的wsgi_app def wsgi_app(self, environ, start_res 阅读全文
摘要:
在Flask中的路由功能主要通过修饰函数route实现,下面我们就来挖掘下route在源代码中是怎么分配视图函数的。 def route(self, rule, **options): def decorator(f): endpoint = options.pop('endpoint', None 阅读全文