1. environment setup required software: Eclipse 3.3.1: http://download.eclipse.org/eclipse/downloads/ (My Jee version) pydev 1.3.13: http://pydev.sourceforge.net/download.htmlpython 2.4 http://www.python.org/Django-1.0.tar.gz http://www.djangoproject.com/download/ 2. after installing pydev, you also need to configure it: Open
Window-> preferences...Dialog box, select"
Pydev "->" interpreter Python ",Click new and select python.exe from the installation environment of python.
3. Develop Django Projects
A. Create a New pytdev project to open eclipse.
File-> New-> OtherIn the tree structure of the dialog box, locate the pydev project under pydev and enter "project name" in the dialog box (in this example, "djanogproject" is used as the project name) and "directory" (in this example, "d: \ pythonwork" is used as the directory of pydev), and select the Python version based on the Python version on your machine, remove "create default 'src' folder and add it to the pythonpath?" . Click "finish. B. run the command line djanog-admin.py startproject djanogproject (Note: Python D:/AA/djanog-admin.py startproject djanogproject) in the D: \ pythonwork directory (AA/AA is the directory of the djanog-admin.py ), create a djanog project named djanogproject. The system automatically generates the URLs. PY, settings. PY ,__ init __. py and other files, refresh the project to see the generated file running manager. PY will report type 'Manage. PY help' for usage. in the running parameters (arguments), add runserver to Windows. For example, use djangoto decompress django-1.0.tar.gz to D: \ python24 \ Django-1.0 and run Python setup. PY install will automatically help you install to D: \ python24 \ Lib \ Site-packages
During installation, the program will automatically download the setuptools-0.6c1-py2.4.egg, if the download problems, you can manually download:
Http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c1-py2.4.egg
Save the downloaded setuptools-0.6c1-py2.4.egg to the Django directory, in this example D: \ python24 \ Django-1.0
Original article: http://deeplyloving.javaeye.com/blog/240267