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 !