1 Setup Configuration Development environment
1.1 Ready to install
Download the following software
Eclipse for C + +
SUN JDK 1.6 doesn't have to be 1.6,1.5.
Python3.1 Python2.6.4 Pythone2.5.2
mod_python-3.3.1.win32-py2.5-apache2.2
mysql-python-1.2.2.win32-py2.5
pysqlite-2.5.5.win32-py2.5
Python.pydev.feature-1.5.0.1251989166-sources.zip
Django-1.1.1.tar.gz
1.2 Apache installation Configuration
Too lazy to configure, directly from the Internet to find a apache+mysql+php package,
can go to http://www.newhua.com/soft/71111.htm download, and then install Mod_python-3.3.1.win32-py2.5-apache2.2.exe let Apache support Python now we're going to configure C :\ essamp\apache2\conf\httpd.conf file, join
LoadModule Python_module modules/mod_python.so
Run Essamp, click "Run" to start the service
Click "Browse the default website" and see the following screen, that is, successful installation
1.1 Eclipse, Python installation configuration
1.1.1 Install JDK
1.1.2 Decompression Eclipse, I was placed under C:\eclipse
1.1.3 Install Python
Install the appropriate Python version, here is the python2.5 version, now Django only support to 2.5, the other versions can exist at the same time, install mysql-python-1.2.2.win32-py2.5 let python support MySQL database, pysqlite-2.5.5.win32-py2.5 lets python support the SQLite database, unzip the python.pydev.feature-1.5.0.1251989166-sources.zip, and copy the two directories inside the Eclipse installation root directory Under "C:\eclipse"
1.1.4 configuration environment variables, on the desktop "My Computer" click the "Properties" menu, select the "Advanced" tab, click the "Environment variable ..." button, modify the system variable Path=;%java_home%\bin, directly added to the back, as shown
Add two more system variables
Java_home=c:\program files\java\jdk1.6.0
Classpath=.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar
1.1.5 launch Eclipse, select Menu "Help"-> "Install New Software ...", pop-up dialog box, as shown
Click the "Add ..." button, enter the address, click the "OK" button, as shown
Select the newly added Pydev Extensions with the work with to see the latest version of the software
Click "Next>" after selecting all
Select all and click Finish to complete the upgrade.
1.1.6 Select Menu "window"-> "Preferences", pop-up dialog box, as shown
Click the "New ..." button to add the Python installation path and click "OK".
1.2 Django Installation Configuration
1.2.1 Installation
Unpack Django, I unzipped to python25, there is a setyp.py file in the Django directory, open the Run window to install
1.2.2 in order to facilitate development, we will again to configure system variables
Path= C:\Python25\Scripts; C:\Python25\Lib\site-packages\django\bin
1.2.3 Test if Django is installed successfully
First look at whether C:\Python25\Lib\site-packages\django\bin exists, and then create a project
django-admin.py Startproject Testemo
After running manage.py runserver, enter http://127.0.0.1:8000/in the browser address bar
The above screen appears, that is, successful installation