The entire process of setting up the cloud Server Django Web platform

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


1. Client link

Download Xshell4.0

Installing XFTP


2, install jdk-1.7.0--79 (64-bit. Ubuntu

Note the version number.

The installation directory is:/usr/local/java/dk-1.7.0.0_79

3. Install mysql-5.5.44 (Chinese setting is not successful!!!!! )

According to the official website tutorial installation

Modify MySQL Character set: Modify/etc/mysql/my.cnf

Under Client Add:

Default-character-set=utf8

Add under Mysqld

Default-character-set=utf8


You can restart MySQL.


4. Installing the Django Framework, version number:

Pip Install django==1.8.3


5, install the stuttering word breaker

Pip Install Jieba


6, Installation haystack

Pip Install Django-haystack

7. Install a Python module django-crontab



8, install Elasticsearch plug-in. See document Http://www.vpsee.com/2014/05/install-and-play-with-elasticsearch/


9. Install ES python client pip install elasticsearch==1.5 (plus version number)


In this context, the construction of the environment is completed, and the next step is to import the data from the MySQL database of the original experiment into the American cloud and use the Elasticsearch

Index to achieve the search function.



10. Build index: Python manage.py rebuile_index


11. Open service Python manage.py runserver 0.0.0.0:8080


The background Run command is: Python manage.py runserver 0.0.0.0:8080 &


Platform ip:http://211.155.92.229:8080/

The entire process of setting up the cloud Server Django Web platform

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.