VS C++项目中,选择工程项名称,右菜单中选择--->仅适用于项目---->仅生成(项目)
1.make_buildinfo,make_versioninfo
make_buildinfo.exe
make_versioninfo_d.exe
2.pythoncore
python25_d.lib
python25_d.dll
3.python,pythonw
python_d.exe
pythonw_d.exe
下载setuptools-21.1.0.zip (WINDOW 下的扩展名 zip)
E:setuptools-21.1.0setuptools-21.1.0>python setup.py install
Copying setuptools-21.1.0-py3.4.egg to c:python34libsite-packages
Adding setuptools 21.1.0 to easy-install.pth file
Installing easy_install-script.py script to C:Python34Scripts
Installing easy_install.exe script to C:Python34Scripts
Installing easy_install.exe.manifest script to C:Python34Scripts
Installing easy_install-3.4-script.py script to C:Python34Scripts
Installing easy_install-3.4.exe script to C:Python34Scripts
Installing easy_install-3.4.exe.manifest script to C:Python34Scripts
---------------------------------------------------------------------------------------------------
安装Django:
E:Django-1.9.6Django-1.9.6>python setup.py install
creating 'distDjango-1.9.6-py3.4.egg' and adding 'builddist.win32egg' to it
removing 'builddist.win32egg' (and everything under it)
Processing Django-1.9.6-py3.4.egg
creating c:python34libsite-packagesDjango-1.9.6-py3.4.egg
Extracting Django-1.9.6-py3.4.egg to c:python34libsite-packages
Adding Django 1.9.6 to easy-install.pth file
Installing django-admin.py script to C:Python34Scripts
Deleting C:Python34Scriptsdjango-admin.py
Installing django-admin-script.py script to C:Python34Scripts
Installing django-admin.exe script to C:Python34Scripts
Installing django-admin.exe.manifest script to C:Python34Scripts
Installed c:python34libsite-packagesdjango-1.9.6-py3.4.egg
Processing dependencies for Django==1.9.6
Finished processing dependencies for Django==1.9.6
---------------------------------------------------------------------------------------------------------------------------------
系统变量加入以下路径:
C:Python34;C:Python34Scripts;C:Python34Libsite-packagesDjango-1.9.6-py3.4.eggdjangoin
测试:
C:UsersAdministrator>cd C:Python34Libsite-packagesDjango-1.9.6-py3.4.eggdjangoin C:Python34Libsite-packagesDjango-1.9.6-py3.4.eggdjangoin>python Django-admin.py startproject testemo C:Python34Libsite-packagesDjango-1.9.6-py3.4.eggdjangoin>cd testemo C:Python34Libsite-packagesDjango-1.9.6-py3.4.eggdjangoin estemo> python manage.py runserver Performing system checks... System check identified no issues (0 silenced). You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them. May 21, 2016 - 13:17:23 Django version 1.9.6, using settings 'testemo.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Not Found: / [21/May/2016 13:18:38] "GET / HTTP/1.1" 200 1767 Not Found: /favicon.ico [21/May/2016 13:18:39] "GET /favicon.ico HTTP/1.1" 404 1937
ie:
http://127.0.0.1:8000/
It worked! Congratulations on your first Django-powered page. Of course, you haven't actually done any work yet. Next, start your first app by running python manage.py startapp [app_label]. You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!