Django Learning Notes Development environment building

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

Why use Django?
1. Support rapid development: development with Python; The database ORM system does not require us to construct SQL statements manually, but rather to use Python objects to access the database to improve development efficiency.
2. A large number of built-in applications: Background management system admin, user authentication system auth; session system sessions.
3. High security: Form validation, SQL such as, cross-site attack.
4. Easy to scale: Django uses apps to divide logical functions. For a mature website, if the requirements change, only need to add an application on it.
Learn about Django's repository of Knowledge: Python basics, Database sql,http protocol, HTML&CSS, regular expressions.
Setting up the Django development environment under Ubuntu:
1. Install Python,ubuntu (15.10) default installation python2.7
sudo apt-get install Ipython
sudo pip install Ipython
(Recommended for Eclipse Python plugin Pydev)
3. Install Pip
sudo apt-get install Python-pip
4. Install Django
sudo pip install Django
5. First Django Project:
Django-admin Startproject MySite
The tree command can be used to see when I use the django-admin startproject mysite command to create a project MySite the current directory changes, you can find a directory named MySite, Its directory structure is the same as the Django project structure created by Pyev:

Enter the project MySite directory and run the startup project:
$ python runserver

At this point the server has been opened, and at Http://, the effect is as follows:

Django Learning Notes Development environment building

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