Django安装
Window 下安装 Django
如果你还未安装Python环境需要先下载Python安装包。
1、Python 下载地址:https://www.python.org/downloads/
2、Django 下载地址:https://www.djangoproject.com/download/
注意:目前 Django 1.6.x 以上版本已经完全兼容 Python 3.x。
Python 安装(已安装的可跳过)
安装 Python 你只需要下载 python-x.x.x.msi 文件,然后一直点击 "Next" 按钮即可。

安装完成后你需要设置 Python 环境变量。 右击计算机->属性->高级->环境变量->修改系统变量 path,添加 Python 安装地址,本文实例使用的是 C:\Python33,你需要根据你实际情况来安装。

Django 安装
下载 Django 压缩包,解压并和 Python安装目录放在同一个根目录,进入 Django 目录,执行 python setup.py install,然后开始安装,Django 将要被安装到 Python 的 Lib下site-packages。

然后是配置环境变量,将这几个目录添加到系统环境变量中:


添加完成后就可以使用Django的django-admin.py命令新建工程了。

检查是否安装成功
输入以下命令进行检查:

如果输出了Django的版本号说明安装正确。
docker: Error response from daemon: driver failed programming external connectivity on endpoint vigilant_beaver (f285e80e7de8b8244e951636bd0438ba5c6a97e142e8ab3c40722c186a154ecc): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 50000 -j DNAT --to-destination 172.18.0.3:50000 ! -i docker0: iptables: No chain/target/match by that name.