安装 下载并解压tar.gz包https://www.djangoproject.com/download/
python setup.py install #安装到//site-packages/
or
pip install django==1.9
创建project
django-admin startproject mysite
创建app
python mamage.py startapp blogs
启动server
python manage.py runserver #0.0.0.0:80 可以指定IP和端口,默认为127.0.0.1:8000
进入交互模式
python manage.py shell
原文:http://www.cnblogs.com/roronoa-sqd/p/4916135.html