Django Environment setup under Windows

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

Overall as follows:

Build a Django environment under Windows

1. Install the Python version
2. Install the PIP tool, the General Python installation will automatically have this, in your Python installation command under the Scripts folder
3.django, the first method is to install via Pip, as long as the PIP install Django is installed under Windows 7. The second method is also through the source installation, git clone https://github.com/django/django.git download the source code, and then through the Python setup.py install installation.
4. Detect if Django is installed successfully

#进入python环境>>> import django>>> print django.get_version()

5. Create your first Django app
After installing Django will have django-admin command, through Django-admin startproject MySite can be created;
Enter the directory via Python manage.py runserver. Launch app
6. Enter Http://localhost:8000/

6. I like to use pycharm directly, directly with the Pycharm load MySite folder, and then you can run directly. It is convenient to write and modify the code later.
7. After installing Django with Pip, of course, you can create the project directly with Pycharm.

Django Environment setup under Windows

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.