First, you need to install Python and Django modules.
Python installation is simple and common software is installed the same way.
After you install Python, you also need to install the Django module, there are several installation methods, you can directly download the Django library files for installation, or use Python pip to install, there are a few problems in the middle of the record.
1, the installation of PIP can be directly downloaded PIP-8.1.1 package decompression can be directly installed, first into the PIP package directory, and then use the command:python setup.py install, such as:
After installing the executable code python installs the directory under LIB.
After installation, if you need to use the PIP command directly on any path, you will also need to set the Scipts directory in the Python installation directory to the system environment variable.
Once the PIP is installed, you can install Django using the command pip install Django . If you have a character set problem, you can modify the system's character set by adding sitecustomize.py under the lib\site-packages directory in the Python installation directory.
The contents of the file are as follows:
# Encoding=utf8 Import sysreload (SYS) sys.setdefaultencoding ('UTF8')
2, another way of installation is to download the package file directly to install, relatively simple,:
https://www.djangoproject.com/download/
PYTHON Django Installation