1、在IIS7中安装Python2.6.2
2、下载Django-1.0.2-final.tar.gz 并解压缩到指定目录,如:D:\Python26\Django-1.0.2-final
3、cmd --> D:\Python26\Django-1.0.2-final --> python setup.py install
4、添加环境变量Path=D:\Python26\;D:\Python26\Scripts\;
参考:
How fast can you produce a simple blog using Django? Pretty darn fast.
升级Django1.1
1、运行 python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
确定Django的安装目录"D:\Python26\Lib\site-packages\django"
2、删除旧的安装目录,如:D:\Python26\Lib\site-packages\django
3、解压缩Django-1.1到D:\Python26\Django-1.1,删除 D:\Python26\Django-1.0.2-final目录
4、cmd --> D:\Python26\Django-1.1 --> python setup.py install