Why should I use WSGI?

后端 未结 6 1545
小蘑菇
小蘑菇 2021-02-05 07:34

Been using mod_python for a while, I read more and more articles about how good WSGI is, without really understanding why.

So why should I switch to it? What are the ben

6条回答
  •  梦毁少年i
    2021-02-05 08:18

    For developing sophisticated web applications in Python, you would probably use a more comprehensive web development framework like DJango, Zope, Turbogears etc. As an application developer, you don't have to worry about WSGI much. All you have to be aware about is that these frameworks support WSGI. The WSGI allows separation of web server and web application code and a system administrator can change the web server as long as the web application is WSGI compliant. If you are developing in one of these frameworks, you would anyway be satisfying this condition.

    If you are a web framework developer (that is developing DJango or Zope itself), then you have to understand WSGI in more depth.

提交回复
热议问题