Download and install Python Django learning notes software (1)

Source: Internet
Author: User

Recently, I am very lazy and seldom update my blog. I am going to take notes on some recently learned Python + Django + oracle.

 

First download the relevant software:

Python: Python and later versions do not support Django. Therefore, to download versions earlier than python3.0, I chose python2.5.

Python-2.5.4.msi download path: http://www.python.org/

DJANGO: Django-1.2.tar.zip download path: https://www.djangoproject.com/

Apache: apache_2.2.9-win32-x86-no_ssl-r2.zip
Mod_python-3.3.0b.win32-py2.5-Apache2.2.exe
Download path: http://httpd.apache.org/http://httpd.apache.org/modules/python-download.cgi

Database: cx_Oracle-5.1-10g.win32-py2.5.msi

Path: http://cx-oracle.sourceforge.net/

Note: Due to the Oracle database used by the company system, I only install the cx_oracle extension library required to connect python to the Oracle database.

 

different database engine Settings

Set

Database

required adapters

''postgresql ''

postgresql

Psycopg1. xVersion,Http://www.djangoproject.com/r/python-pgsql/1/.

postgresql_psycopg2

postgresql

Psycopg2. xVersion,Http://www.djangoproject.com/r/python-pgsql/.

mysql

mysql

Mysqldb,Http://www.djangoproject.com/r/python-mysql/.

sqlite3

SQLite

If you usePython 2.5 +You do not need an adapter. Otherwise, use Pysqlite , Http://www.djangoproject.com/r/python-sqlite/ .

Oracle

Oracle

Cx_oracle,Http://www.djangoproject.com/r/python-oracle/.2

You must download and install the corresponding database adapter no matter which database server you choose to use.

 

Installation instructions:

1. Install Python

This step is very simple. Double-click to run Python installation.Program, Follow the Wizard to go to the next step. We recommend that you set a directory that is easier to find in the path. For example, set it to c: \ python25. In this way, other Python-related resources can be organized into the python_home directory. (Set the environment variable, add in path; % python_home % \ scripts ;)

2. Install Django

Decompress the package to the python directory, for example, C: \ python25 \ Django. Open a command prompt window, enter c: \ python25 \ Django>, and enter the command Python setup. PY install, this command will install Django under site-package and set sys. path. At this point, the basic installation of Django is complete.

3. install Apache

It is quite simple. Double-click the installation file and follow the wizard.

 

4. Install cx_oracle
Follow the Wizard to install
Installation instructions: http://blog.wodeshufang.com/p/python-windows-oracle-connect.html

 

 

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.