在部署django应用时,mod_python不再推荐,使用wsgi方式

最近在忙着部署前段时间开发的项目,由于没有注意django的版本问题;在部署时费了老大劲,为逝去的青春留下一页博客。

mod_python部署的方式在django的1.4及1.4之前是可以的,但是从django1.5开始,废弃了这种方式,django官网推荐使用wsgi方式;官方声明如下:

If you’re new to deploying Django and/or Python, we’d recommend you try mod_wsgi first. In most cases it’ll be the easiest, fastest, and most stable deployment choice.

See also

  • Chapter 12 of the Django Book (second edition) discusses deployment and especially scaling in more detail. However, note that this edition was written against Django version 1.1 and has not been updated sincemod_python was first deprecated, then completely removed in Django 1.5.


以此提醒那些误入歧途的人....

你可能感兴趣的:(在部署django应用时,mod_python不再推荐,使用wsgi方式)