Windows installation Django_ Baidu experience

Source: Internet
Author: User
Tags install django

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. Here's how to install Django under Windows.

Tools/Materials
    • django-1.6.2

    • Python 3.3.4

Method/Step
    1. 1

      Because Django itself is written by Python, you first install Python. (Can download according to reader's current version): http://www.python.org/download/releases/3.3.4/

      Django's: https://www.djangoproject.com/download/

      Currently Django 1.6x and above are fully compatible python3x

    2. 2

      Install Python, open Python-3.3.4.msi and then direct next to install.

      Note that in order to next use the Python command under DOS, configure the environment variable here. Right-click Computer, properties, advanced environment variable, modify the system variable path, add the Python installation address, the author here is C:\Python33;

    3. 3

      After Django is downloaded as a compressed package, unzip and Python are placed in the same root directory, under DOS into Django-1.6.2 (the reader may be different version) directory, execute Python setup.py install, and then start the installation, Django will be installed into Python's lib under Site-packages.

    4. 4

      Then, configure the environment variables to add these directories to the system environment variables:

      C:/python33/lib/site-packages/django; C:/python33/scripts.

      Once added, you can use the Django django-admin.py command to create a new project.

    5. 5

      To check if the installation is successful, you can view the Django version under DOS into the Django-1.6.2 directory.

      1. Enter Python

      2. Enter the import Django

      3. Enter Django.get_version ()

      END
Precautions
    • I am using Django-1.6.2 and Python 3.3.4, readers please install according to their own download version

Windows installation Django_ Baidu experience

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.