Python Learning (ii) Django installation configuration

Source: Internet
Author: User
Tags install django

The previous section describes how to build a python development environment, this time to introduce how to build a Django development environment.

First, download Django

Django corresponds to Python version

Django version Python versions
1.4 2.5, 2.6, 2.7
1.7, 1.8 2.7 and 3.2, 3.3, 3.4
1.9 2.7, 3.3, 3.4, 3.5

I chose 1.8.2,:https://www.djangoproject.com/download/here.

Second, install Django

The next step is finished. Django is installed by default in the Python directory under \lib\site-packages.

Third, configure environment variables

Computer-Attribute-Advanced system settings-environment variable setting, find the path in the system environment variable, add "D:\Python27\Lib\site-packages\Django-1.8.2-py2.7.egg\django\bin;" at the end.

Iv. verifying that the Django installation configuration is successful

Open a command-line window and enter Python into the Python interface.

Enter Import Django Enter, if there is no error stating that the Django installation was successful. Alternatively, you can enter the Django.get_version () carriage return to display the installed Django version.

    

Python Learning (ii) Django installation configuration

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.