Worked hard, and finally built the Django environment on WINDOWS10 and successfully set up the project
1. First install Python, configure the environment variable path:c:\python27;c:\python27\scripts;
2. Go to the Django website to download the Tarball django-1.8.3.tar.gz, then unzip it in the C drive and enter the following command:
CD C:\Django-1.8.3
Python setup.py Install
After the command is run, the Django environment is installed, and then the environment variable is configured Path:c:\python27\lib\site-packages\django-1.8.3-py2.7.egg\django\bin
3. Import and check the Django installation by entering the following command at the command terminal:
Python
>>>import Django
>>>django. VERSION
4. Create a Django Project
Django-admin startproject cms678 (project name)
This will result in a cms678 project folder in the user directory.
manage.py: You can manage this project from the command line.
-------------------------------------------------------
__init__.py: Use this project directory as a Python package.
settings.py: The configuration file for the project.
urls.py: Defines a URL routing table in a Django project that specifies the correspondence between the URL and the called Class.
wsgi.py: This is the newly added default Web server gateway interface in Django1.4.
The command window switches to the cms678 folder and then runs the command: Python manage.py runserver, starting the current directory project.
Browser input Http://127.0.0.1:8000/
This basic operation is over.:-)
Configuring the Django Environment under Windows