The Python Django template provided by VS2015 in the preliminary interview

Source: Internet
Author: User
Tags install django pip install django

Want to try python a bit lately. Discover vs2015 provides some of Python's project templates. Among them is the famous web framework Django.

After the project is created, the direct debug run is faulty and the Django module is not found, and no modules named ' Django '.

Online search, have friends have this problem, but with my situation may be different. (Because I am a clean machine, without any python environment)

Django Official website

: https://www.djangoproject.com/download/, see this command at first sight

Pip Install django==1.8.4

1.8 is the latest official version, the latest 1.9 is the alpha version.

Next need to install pip,https://pip.pypa.io/en/latest/installing/#install-pip, first need to download a name called: get-pip.py file, and then run

Added: Without looking closely at the document, there is a description of the PIP, in a version of 2.7, and the PIP is already integrated in the version above 3.4, so there is no need to install the PIP separately.

Python 2.7.9 and later (on the Python2 series), and Python 3.4 and later include PIP by default [1], so could have pip a Lready.

  

Python get-pip.py

Wait for the installation to complete. Next, use the PIP command to install Django

When you finish creating a project in VS, you are prompted to synchronize the DB

The program directs you to fill in the Administrator user information for the Web Template site when synchronizing db.

After the debugging run, you can see a welcome Web interface with the same as ASP.

The Python Django template provided by VS2015 in the preliminary interview

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.