Windows platform installs Django

Source: Internet
Author: User
Tags install django

Windows platform installs Django

First, pre-preparation

You need to install Python on the Windows platform before you install Django. The Windows platform Python is already installed and has the following version:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/A4/F6/wKioL1m1Qv3jYLePAAATXC1ll30894.png "title=" 112211.png "alt=" Wkiol1m1qv3jylepaaatxc1ll30894.png "/>


II. Medium-term preparation

1. Download Django

Download Django URL: https://www.djangoproject.com/download, go in and choose the latest version to download. The latest version at this time is: django-1.11.5.tar.gz

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/A4/F6/wKioL1m1RGWiYUa1AAGIN08h8Jo625.png "title=" 112212.png "alt=" Wkiol1m1rgwiyua1aagin08h8jo625.png "/>

2. Unzip to the appropriate directory

After downloading the appropriate Django version, copy the compressed package to the Python installation directory and unzip it to the Python installation directory.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/A4/F6/wKioL1m1RUnRO1NcAAC_BfopGWo086.png "title=" 112213.png "alt=" Wkiol1m1runro1ncaac_bfopgwo086.png "/>

Third, post-installation

1. Switch directories to the Python installation directory first

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/A4/F6/wKioL1m1Tf7zD38cAAAJOI30GkE141.png "title=" 313. PNG "alt=" Wkiol1m1tf7zd38caaajoi30gke141.png "/>

2. Start installing Django

There is a Python-written installation script under the Django directory setup.py

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/A4/F6/wKioL1m1Tq7yn8sNAADKinrsytA664.png "title=" 312. PNG "alt=" Wkiol1m1tq7yn8snaadkinrsyta664.png "/>

Then execute the command python setup.py install in cmd and start installing Django. The interface at the end of the installation is as follows

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/06/46/wKiom1m1T1Kzm46GAAAaHHQXyaE784.png "title=" 311. PNG "alt=" Wkiom1m1t1kzm46gaaaahhqxyae784.png "/>


Iv. Testing

Open python in Cmd, invoke Django, test

Prthon

>>> Import Django

>>> django.get_version ()

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/06/46/wKiom1m1T_WDJh8QAAATdn1RyqA242.png "title=" 310. PNG "alt=" Wkiom1m1t_wdjh8qaaatdn1ryqa242.png "/>

The test was successful and the installation was successful!

This article from "Doublelinux" blog, declined reprint!

Windows platform installs Django

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.