摘要:
请求上下文源码分析、g对象、第三方插件(flask_session、flask_script、wtforms)、信号 [TOC] 一、请求上下文源码分析 程序运行,两个LocalStack()对象,一个里面放request和session,另一个放g和 二、g对象 1、什么是g对象 专门用来存储用户 阅读全文
摘要:
session源码分析 [TOC] 1、请求来了,执行\_\_call\_\_方法 2、\_\_call\_\_方法 python def __call__(self, environ, start_response): """The WSGI server calls the Flask appl 阅读全文