Build a Django environment in Windows and build a windowsdjango Environment

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

Build a Django environment in Windows and build a windowsdjango Environment

 

 

Overall:

Build a Django environment in Windows

1. Install Python
2. Install the pip tool. This will be automatically installed in Python. In the Scripts folder under your python installation command
3. django. The first method is to install it through pip. In windows 7, you only need pip install django. The second method is to install python by using the source code. install Python setup. py install after git clone https://github.com/django/django.gitdownload source code.
4. Check if Django is successfully installed.

> Python # enter the python environment >>> import django >>> print django. get_version () 

5. Create the first django Application
After django is installed, the django-admin command can be created through django-admin startproject mysite;
Go to the directory and start the application through python manage. py runserver.
6. Go to http: // localhost: 8000/

6. I like to directly use PyCharm to load the mysite folder and then run it directly. Later code compilation and modification will be very convenient.
7. Of course, after installing Django with pip, you can directly create a project with PyCharm.

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.