Deploy Python3.4 and Django1.6.5 in centos7

Source: Internet
Author: User
CentOS7 + Python3.4 + Django1.6.5 + Apache2.4 + mod_wsgi4.2.7

Recently, applications written with Python3.4 and Django1.6.5 have been successfully deployed with Apache7 on centos7. it has been around for nearly a week! Finally, I come to the conclusion that it is best to directly read the official English documents for new things. most Chinese blogs are outdated and ineffective, so they are easy to mislead themselves.

The deployment process is recorded here.

Download related source code:

Mod_wsgi4.2.7: Pushed.

Source code compilation and installation sequence:

Apache2.4 Python3.4 mod_wsgi-4.2.7 Django1.6.5

Before installation, see the following documents:

1. python source code compilation: http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos /. This foreign language describes the precautions for installing Python on centos, such as the required dependent libraries and compilation options!

2. install mod_wsgi: https://github.com/grahamdumpleton/mod_wsgi. I used the python installation method.

For the deployment process, see the following documents:

1. https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/

2. https://github.com/GrahamDumpleton/mod_wsgi

Do not use mod_python during deployment. Django1.6 has long removed support for it. Do not use mod_fastcgi. the released flup does not support python3. the flup on github can be used for python3. However, many problems are encountered during the actual measurement, which is not recommended for saving the trouble.

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.