Django builds an environment configuration in one of the forums, and django builds a forum

Source: Internet
Author: User
Tags install django pip install django

Django builds an environment configuration in one of the forums, and django builds a forum

Environment:

Description: Ubuntu 15.04

Python version: Python 2.7.9

Django version: 1.8.4

 

Install django:

Pip install django
# Test after installation >>> import django >>> print (django. get_version () 1.8.4

Install mysql database:

> Sudo apt-get install mysql-server

> Sudo apt-get install mysql-client

Install MySQL-python

To enable python to operate mysql, you need the MySQL-python driver, which is an essential module for python to operate mysql.

Apt-get install MySQL-python

Check whether the MySQLdb module can be imported normally.

>>> Import MySQLdb

If no error is reported and the MySQLdb module cannot be found, the installation is OK.

Related Article

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.