Method of installing django module in python

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

Method of installing django module in python
Summary of logarithm method in Python
Prettytable module of python
Subscripts of tuples in Python
matplotlib of python drawing module
Python method of parameter passing
Detailed steps for installing Django under Python 3.6 in Ubuntu 16.04 environment
The usage of wheel in python
Use of Pandas in Python development
Detailed usage of dictionary in Python
​Full analysis of Python module knowledge
The usage of tuples in python
End the method of running python
Description of in parameterization in python mysql
Python3 module
The usage of Ajax in Python3 crawler
Analysis of glob in python standard library
Summary of common operations of Python time module
The specific method of python instantiation object
Example method of reading sql from python
Knowledge points of shell execution in python
The specific method of python import library
Method analysis of Python calling C language program
What is the function of adb in python
Detailed explanation of the principle of Python super() method
7 features of Python3.9
Detailed explanation of python standard library OS module
Python implements the shuffling of the cards in Doudizhu
The meaning and usage of lists in python
Detailed explanation of the usage of Python decimal module
The consequences of uninstalling python in ubuntu, very
How to install the downloaded module in python
The latest method of installing Mongodb on Ubuntu 16.04
Example of feature extraction operation implemented in Python
Python Lesson 37-Module
Detailed explanation of static DNS configuration method in Ubuntu
Solve the problem of python compiling and installing ssl
Installation and use of GDAL in Python under Ubuntu
How to understand the introduction of packages in Python
How to understand a list of numbers in python
Example of how to automatically download pictures in python
03. Operators in Python entry
Python3 built-in module usage
Python object-oriented magic method
Python3.7 debugging example method
Join function in Python
12. Network Programming in Python3
print statement in python
Python function-dictionary get() method
Basics of Python syntax
Concurrent requests in Python
Basic syntax of Python
Basic knowledge of Python (1)
Install python in Ubuntu
Context management in Python
Arithmetic operators in python
Python error handling method
Write gui in python
MongoDB usage in Python
09. Common modules of Python3
Str string in Python