(venv) E:\develop\python\demo2\demo_server>py manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
May 21, 2020 - 23:42:23
Django version 3.0.6, using settings 'demo_server.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。
问题原因:8000端口被占用了
解决办法:默认启动的服务端口是8000,启动时修改该端口即可
py manage.py runserver 8888
或者找出该端口,kill后再启动项目
netstat -ano | findstr 8000 #找出端口
tasklist | findstr 8000
taskkill /pid 8124 /F #进程号要修改