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