Recently wanted to learn Python web development, to write a small project. After some understanding, I found that Python web development is the most popular framework is Django, the following is the process I build Django.
1. First install the Python environment, go to Python's official website to download the installation files
Address: https://www.python.org/
After downloading, double-click the installation file to enter the installation screen remember to tick the add Python 3.6 to PATH, otherwise you will need to manually configure the variable, then the next step is to wait for the installation to complete.
2. Check whether the installation was successful
Open Window command line Windows Win + R input cmd Click OK
In the command-line window, enter Python, and the following prompts the installation to succeed.
If the prompt is: ' Pyhtho ' is not an internal or external command, it is not a running program or a batch file.
Need to manually configure the environment variables, right click on the computer, select Properties
Click Advanced System Settings
Click Environment variables
Select Path Click Edit
Add the Python installation path, then go to the command line
3. Install Django
In the Command Line window, enter:pip install Django
After the installation is complete, enter in the command window:
Import Django # Importing a Django Package
Django.get_version () # View the Django version
Here, the framework for Python web development is built.
The construction of the Python web development Django environment