Build a Django Development Environment

Source: Internet
Author: User

Tag: Django

Build a lamp or Lapp Environment

L: Linux

A: Apache

M: MySQL

P: PostgreSQL

P: Python Django

1. Install the Apache server

  1. Sudo apt-Get install apache2

  2. 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

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.