在部署django應用時,mod_python再也不推薦,使用wsgi方式

最近在忙着部署前段時間開發的項目,因爲沒有注意django的版本問題;在部署時費了老大勁,爲逝去的青春留下一頁博客。
html

mod_python部署的方式在django的1.4及1.4以前是能夠的,可是從django1.5開始,廢棄了這種方式,django官網推薦使用wsgi方式;官方聲明以下:python

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.django

See alsothis

  • 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.htm


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

相關文章
相關標籤/搜索