Tag: Django
Build a lamp or Lapp Environment
L: Linux
A: Apache
M: MySQL
P: PostgreSQL
P: Python Django
1. Install the Apache server
Sudo apt-Get install apache2
Sudo apt-Get install libapache2-mod-wsgi
Restart Apache: sudo/etc/init. d/Apache restart
You can modify the configuration file apache2.conf.
Ii. Install MySQL
Sudo apt-Get install mysql-Server
Sudo apt-Get install Python-mysqldb
3. Install PostgreSQL
Sudo apt-Get install PostgreSQL
Sudo apt-Get install psycopg2
Iv. Django installation:
Step 1: Download the Django software package.
You can download it from the Django website at https://www.djangoproject.com/download /. Click first, download Django-1.5.1.tar.gz (checksums) to start the download.
Step 2: Decompress the Django software package.
If you use the GUI, double-click it. If you are at Terminal, enter TAR-zxvf variable file=.tar.gz. Here {file} is the name of your Django package.
Step 3: Install the Django software package.
CD to enter the decompressed folder, and then enter sudo Python setup. py install. Installation complete!
This article is from the "blue fin dolphin" blog, please be sure to keep this source http://likunheng.blog.51cto.com/9527645/1571431
Build a Django Development Environment