mod_wsgi, mod_python, or just cgi?

后端 未结 4 1781
轻奢々
轻奢々 2021-01-30 16:23

I\'ve been playing around with my own webserver (Apache+Ubuntu) and python. From what I\'ve seen there are 3(?) main ways of doing this:

  1. Apache configured to handl
4条回答
  •  忘掉有多难
    2021-01-30 17:11

    1. Don't use CGI. It's inefficient. Spawning a new process for each request. No thanks

    2. Dont't spend much time with mod_python

    3. Use mod_wsgi.

    If you want to write CGI-like stuff without a framework, use mod_wsgi anyway. The WSGI standard (PEP 333) is essential for creating web applications in an easy, interchangeable, reusable, plug-and-playable way.

提交回复
热议问题