WINDOW10 install Django and create the first Django project

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

1. Enter pip install django==1.11.7in cmd and install the version: 1.11.7.

2. When the installation is complete, enter:

>>> Import django>>> Print (Django.get_version ())

If the version number appears, the installation is complete.

3. Add an environment variable to the environment variable path:D:\workpace\Python\PythonIDE\Lib\site-packages\django\bin, You can use the Django-admin command in any of the DOS command lines.

4. Create a new project, the storage path for the new project is in D:\workpace\Python\PythonIDE\Lib\site-packages\django\bin .

django-admin.py Startproject HelloWorld

5. Enter D:\workpace\Python\PythonIDE\Lib\site-packages\django\bin\ProjectName in the DOS command line and enter

Python manage.py runserver 0.0.0.0:8000

Start the Django Service

6,. Then enter 127.0.0.1:8000 in the browser, the Installation Success screen appears, the installation is successful.

WINDOW10 install Django and create the first Django project

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.