Post) Build a Django development environment under eclipse

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.