Gunicorn is very simple for running Python websites

Source: Internet
Author: User

The website where Gunicorn runs Python is really simple. Here we will introduce how to use django. Compared with complicated apache configurations, this configuration is actually less than an order of magnitude.

First install Gunicorn through easy_install in unix:

$ Easy_install gunicorn

Then run the following command in your django project:

$ Gunicorn_django [OPTIONS] [SETTINGS_PATH], for example:

 

$ Cd path/to/yourdjangoproject
$ Gunicorn_django -- workers = 2

Or modify the setting. py file:

INSTALLED_APPS = (
...
"Gunicorn ",
)

Then run:

Python manage. py run_gunicorn is incredibly simple.

The key is simplicity and good performance!

For details about Gunicorn, click here
Gunicorn: click here

Use Gunicorn to deploy the web. py Application

Gunicorn is very simple for running Python websites

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.