程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Gunicorns website to run Python is very simple

編輯:Python

Gunicorn function Python Our website is very simple , Here's an introduction django How to use , and apache Compared to complex configurations , This configuration is not an order of magnitude less .

First, in the unix Pass through easy_install install Gunicorn:

$ easy_install gunicorn

And then in your django The project runs below :

$ gunicorn_django [OPTIONS] [SETTINGS_PATH] Such as :

$ cd path/to/yourdjangoproject $ gunicorn_django --workers=2

Or modify setting.py file :

INSTALLED_APPS = (     ...     "gunicorn", )

And then run :

python manage.py run_gunicorn It's incredibly simple .

The key is simplicity , And the performance is very good !


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved