django在启动之前会有一系列初始化过程。本文主要通过阅读django源码来探索django的初始化过程。
实现wsgi规范
django遵循wsgi规范,下面看一django的实现方式。
规范要求一 — 生成一个可调用对方给服务器调用
在django文档中有下面一句话
The key concept of deploying with WSGI is the application callable which the application server uses to communicate with your code. It’s commonly provided as an object named application in a Python module accessible to the server.
The startprojec