1 安装mysql 不用说python
2 安装django不用说mysql
3 还须要安装一个 ez_setup.py web
4 下载 MySQLdbsql
5 若是安装不上出现shell
Traceback (most recent call last):EnvironmentError: mysql_config not founddjango
须要安装 yum install mysql-server mysql-client libmysqlclient-dev app
6 出现spa
/usr/bin/ld: cannot find -lmysqlclient_rorm
须要安装 mysql-develserver
7 使用 python manage.py runfcgi method=threaded host=127.0.0.0 port=8000 若是出现
ERROR: No module named flup
Unable to load the flup package. In order to run django
as a FastCGI application, you will need to get flup from
http://www.saddi.com/software/flup/ If you've already
installed flup, then make sure you have it in your PYTHONPATH.