django +mysql配置(centos)

1 安装mysql 不用说python

2  安装django不用说mysql

3 还须要安装一个 ez_setup.py web

4 下载 MySQLdbsql

5 若是安装不上出现shell

Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    metadata, options = get_config()
  File "/site/shell_test/python/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
  File "/site/shell_test/python/MySQL-python-1.2.2/setup_posix.py", line 24, in mysql_config
    raise EnvironmentError, "%s not found" % mysql_config.path

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.

须要安装 flup   wget http://www.saddi.com/software/flup/dist/flup-1.0.2.tar.gz
相关文章
相关标签/搜索