Windows to install the Django
If you have not yet installed a Python environment, you need to download the Python installation package first.
1, python:https://www.python.org/downloads/
2, django:https://www.djangoproject.com/download/
Note: Django 1.6.x or above is now fully compatible with Python 3.x.
Python installation (installed can be skipped)
To install Python you just need to download the Python-x.x.x.msi file and click on the "Next" button.
After the installation is complete, you need to set the Python environment variable. Right-click Computers, properties, advanced environment variables, modify the system variable path, add the Python installation address, this article uses the C:\PYTHON33, you need to install according to your actual situation.
Django Installation
Download the Django tarball, unzip it and place it in the same root directory as the Python installation directory, where there may be an error because the Python installation directory has a Python and a python3. A few, to put in the former, that is, the front directory into the Django directory, execute python setup.py install, and then start the installation, Django will be installed into Python's lib under Site-packages.
Then, configure the environment variables to add these directories to the system environment variable: C:/python33/lib/site-packages/django; (there may be a directory before Django) c:/python33/scripts. Once added, you can use the Django django-admin.py command to create a new project.
Check if the installation is successful
Enter the following command to check:
pythonImportDjangodjango.get_version()
If you output the Django version number, the installation is correct.
Windows installation Django