Search the Internet for the corresponding version number, and the version number corresponds.
There are two ways to install django:
1. pip install
pip install django
I have reported an error when I used this method. It seems that access is blocked. I generally use the second
2. Download the compressed package and install manually
Download the tar.gz package on the django official website and unzip it in the python corresponding directory
After entering the compressed package directory in the command window, execute python setup.py install
After the installation is complete, the command window imports django.
It can be imported normally and the installation is successful when you see the version number.
After that, you can create a django project. Pycharm has a free version and a professional version. The free version creates a django project in the command window.
1. Create project
Choose a directory where you want to store the project
Enter the directory and enter the command django-admin startproject XXX (XXX is the project name)
After the creation is complete, go to the directory to view the directory where the project you created
ps: I got an error when I created the project. Said missing modules. So download the module manually, after installation. Created successfully
Attach a few module addresses that I am missing: sqlparse and pytz
https://pypi.org/project/sqlparse/#files
https://pypi.org/project/pytz/#files
2. Import project
Import the created project in pycharm
So far, this article on the method of installing django module in python is introduced. For more related python installation django content, please search the previous articles of ZaLou.Cn or continue to browse the related articles below. I hope everyone will support ZaLou.Cn more in the future. !
Recommended Posts