第一步:下载 安装 python2.7, 添加环境变量path: C:/Python27/;
第二步:下载 Django1.3 http://www.djangoproject.com/download/
解压后,doc cmd运行 python setup.py install
第三步:添加Django到环境变量 path: C:/Python27/Lib/site-packages/django/bin;
安装完成,测试:
doc cmd下:
命令: django-admin.py --version
显示: 1.3
命令: python
命令: import django
命令:django.VERSION
显示: (1, 3, 0, 'final', 0)
下一步可以建立一个WEB站点了:
C:/Python27/sites>django-admin.py startproject webapp
C:/Python27/sites>cd webapp
C:/Python27/sites/webapp>manage.py runserver
Validating models...
0 errors found
Django version 1.3, using settings 'webapp.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[04/Apr/2011 21:07:40] "GET / HTTP/1.1" 200 2051
完成django的环境配置