传送门
- https://www.zhihu.com/question/19998865/answer/26203965
- https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface
- https://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001386832689740b04430a98f614b6da89da2157ea3efe2000
- https://www.python.org/dev/peps/pep-0333/
概念
- WSGI是一个接口规范;如果服务器支持WSGI,Python的WEB APP支持WSGI,那么这个WEB APP可以运行在这个服务器上。
- WSGI is the Web Server Gateway Interface. It is a specification that describes how a web server communicates with web applications, and how web applications can be chained together to process one request.
- WSGI是一个规范,只是一个规范,定义了Web服务器如何与Python应用程序进行交互,使得使用Python写的Web应用程序可以和Web服务器(nginx/apache)对接起来。