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.