Windows installation Django

Source: Internet
Author: User

Windows to install the Django

If you have not yet installed a Python environment, you need to download the Python installation package first.

1, python:https://www.python.org/downloads/

2, django:https://www.djangoproject.com/download/

Note: Django 1.6.x or above is now fully compatible with Python 3.x.

Python installation (installed can be skipped)

To install Python you just need to download the Python-x.x.x.msi file and click on the "Next" button.

After the installation is complete, you need to set the Python environment variable. Right-click Computers, properties, advanced environment variables, modify the system variable path, add the Python installation address, this article uses the C:\PYTHON33, you need to install according to your actual situation.

Django Installation

Download the Django tarball, unzip it and place it in the same root directory as the Python installation directory, where there may be an error because the Python installation directory has a Python and a python3. A few, to put in the former, that is, the front directory into the Django directory, execute python setup.py install, and then start the installation, Django will be installed into Python's lib under Site-packages.

Then, configure the environment variables to add these directories to the system environment variable: C:/python33/lib/site-packages/django; (there may be a directory before Django) c:/python33/scripts. Once added, you can use the Django django-admin.py command to create a new project.

Check if the installation is successful

Enter the following command to check:

pythonImportDjangodjango.get_version()

If you output the Django version number, the installation is correct.

Windows installation 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.