出现的问题:
1.pip未安装:http://www.cnblogs.com/fnng/p/3737964.html
2.安装uwsgi失败,因为未安装python-devel
yum search python | grep -i devel #查看可用的python-devel
yum install python-devel.x86_64 #安装
3.提示Django you have 13.xxx :未创建数据库
python manage.py migrate
4.提示非法主机XX的,Invalid HTTP_HOST header: '127.0.0.1:8000'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.
#在setttings.py中配置 ALLOWED_HOSTS = ['你的ip地址', 'localhost', '127.0.0.1']
如果还是不能解决,重启uwsgi
5.Django提示:Did you install mysql-python?:
yum install MySQL-python
6.Django的admin没有css样式,无法加载静态资源等,查看我的另外一篇随笔有详细说明:nginx配置和setting.py配置
搭建项目:http://www.cnblogs.com/fnng/p/3737964.html