Python Learning note 22:django download installation

Source: Internet
Author: User
Django is an open-source Web application framework written by Python. The MVC Software Design pattern is used, i.e. model M, view V and Controller C.
It was originally developed to manage some of the news content-based websites of the Lawrence Publishing Group, namely CMS (Content management system) software.
and was released in July 2005 under the BSD license. The framework is named after the Belgian gypsy jazz guitarist Django Reinhardt.
--Baidu Encyclopedia


Official website Download: https://www.djangoproject.com/download/

The official website also gives a number of command-line installation methods, the following is to be said to download the compressed package How to install:


1 decompression command: tar-zxvf django-1.7.1.tar.gz


2 installation command: CD Django-1.7.1
Command: sudo python setup.py install


3 testing into the Python environment:
Command: python
In the python environment, the initiator input:
Command: import Django
Command: print (Django. VERSION)


If you can see the output:
(1, 7, 1, ' final ', 0)
And so on, the installation was successful.


4 exiting the Python environment it's possible you don't know how to quit the python environment, you can use the following command:
Command: exit ()
So, you're back at the terminal again.

Python Learning note 22:django download installation

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.