Django Book 翻译
菜单>:
TOC
返回
原文:
For performance reasons, each activated middleware class is instantiated only *once* per server process. This means that ``__init__()`` is called only once at server startup not for individual requests.
翻译:
出于性能的考虑,每个已启用的中间件在每个服务器进程中只初始化 *一* 次。也就是说 ``__init__()`` 仅在服务进程启动的时候调用,而在针对单个request处理时并不执行。
备注:
译者: