Python Django's build process in Elipse
First download the version of Windows that installs Python (Linux): http://www.python.org
Python is easy to install in a Windows environment, double-click Python-xx.msi (even version is stable) and follow the wizard to install Python locally.
Test whether the installation was successful: Win start and all programs will see Figure A
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4E/69/wKioL1Rgj1bDdHcPAABkolyzNQs849.jpg "title=" Py1.jpg "alt=" Wkiol1rgj1bddhcpaabkolyznqs849.jpg "/>
Figure A
Open idle, enter echo ' Go ' return, output go
Configure Environment variables: Configure the Python installation directory to the environment variable path, open the DOS window and enter the Python command, such as:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4E/6B/wKioL1RgkHuiVwWeAAFFznjmpXg502.jpg "title=" Py3.jpg "alt=" Wkiol1rgkhuivwweaaffznjmpxg502.jpg "/>
In this case, the Python installation was successful!
Install Python for Eclipse plug-in,: http://download.csdn.net/download/q52wow/2872235, download is a compressed file, after decompression will features, Plugins the files in the two folder into the corresponding directory in Eclipse, restart Eclipse. If the installation is successful, you will see Pydev in Window----Preferences, such as: Ok,python plug-in to this installation succeeds, restart Eclipse, you can create Python project in Eclipse. Install Django This is a third-party plugin that is written in the Python language. is a Python web framework that supports a variety of databases. django:https://www.djangoproject.com/Select the version that needs to be installed, after downloading it is a compressed package, extracted to the Python installation directory. After Django is unpacked, you need to ensure that the Python installation directory is configured in the environment variable path before installing. installation command:
python setup.py Install
The error message "Importerror:no module named Setuptools" may appear during installation because the Setuptools module is not installed by Django by default in the Windows environment. Similarly, manual installation is also required
Setuptools Download Directory https://bootstrap.pypa.io/ez_setup.py, this is a py file, run this file is installed on the premise of Python. Operating mode: F5
After installing Setuptools, execute the python setup.py install again, and the system will automatically install the Django related files in the corresponding directory of the Python installation.
To test whether the installation was successful:
To reopen Python IDLE, enter:
>>> Import Django
>>> django.get_version ()
will show whether the newly installed Django installation was successful.
4. Configure Django in Eclipse to start the first Django program
The configuration in Eclipse is to introduce Django-installed Python into Eclipse, and Eclipse is used only as an editing environment.
Configuration process:
Preferences, Pydev, Windows, Interpreter-python Select the new or this Auto Config button to bring in the desired configuration.
At this point, the entire Django application is available in eclipse. New Project ...
This article is from the "Pydevdjangoforeclipse" blog, make sure to keep this source http://vivian87.blog.51cto.com/8573060/1575125
Build Python Django in eclipse