django使用记录/mac
下载:官网下载/pip+install模式比较愉快
https://www.djangoproject.com/
https://docs.djangoproject.com/en/1.8/topics/install/#installing-official-release
根据链接下载pip
然后
sudo pip install Django
/*创建一个Django目录,以后我们所有的测试样例都将储存在这里*/
sudo mkdir ~/Document/DJangocd ~/Document/DJango
/*创建一个用于测试Localhost的网站样例*/
django -admin .py startproject testLocalHost
/*启动网站服务*/
cd testLoacalHost
python manage.py runserver
<