django 学习第一天搭建环境
目前django版本是1.10,我学习的基础教材是
Web Development with Django Cookbook, Second Edition
搭建好配置环境
- ssh免认证登录
修改一下pip源,不然会很慢
修改主用户目录下~/.pip/pip.conf文件(没有则创建)
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com#没有这句会包warning
disable-pip-version-check = true #版本不检查
timeout = 120#超时时间设置安装一下mysql
sudo apt-get install mysql-server
sudo apt-get isntall mysql-client
sudo apt-get install libmysqlclient-dev
sudo netstat -tap | grep mysql
- getting ready sudo pip install Pillow sudo pip install MySQL-python sudo pip install virtualenv