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.