The previous section describes how to build a python development environment, this time to introduce how to build a Django development environment.
First, download Django
Django corresponds to Python version
Django version |
Python versions |
1.4 |
2.5, 2.6, 2.7 |
1.7, 1.8 |
2.7 and 3.2, 3.3, 3.4 |
1.9 |
2.7, 3.3, 3.4, 3.5 |
I chose 1.8.2,:https://www.djangoproject.com/download/here.
Second, install Django
The next step is finished. Django is installed by default in the Python directory under \lib\site-packages.
Third, configure environment variables
Computer-Attribute-Advanced system settings-environment variable setting, find the path in the system environment variable, add "D:\Python27\Lib\site-packages\Django-1.8.2-py2.7.egg\django\bin;" at the end.
Iv. verifying that the Django installation configuration is successful
Open a command-line window and enter Python into the Python interface.
Enter Import Django Enter, if there is no error stating that the Django installation was successful. Alternatively, you can enter the Django.get_version () carriage return to display the installed Django version.
Python Learning (ii) Django installation configuration