Django study notes (2) - An error occurred during runtime: [WinError 10013] An attempt was made to access the socket in a way that access permissions do not allow.

Error content : Error: [WinError 10013] An attempt was made to access the socket in a way that access permissions do not allow.

Reason for the error : The selected port is occupied by other programs. 任务管理器 > 详细信息The default port used is 8000. You can view the port occupancy in PID.

Solution : Use another port when running. Taking port 8080 as an example, use the following command when running:

python manage.py runserver 8080

Guess you like

Origin blog.csdn.net/qq_35357274/article/details/124467261