1、安装django
2、新建项目
django-admin startproject xxx报错:
原因:本地安装了Python2、Python3.
解决:
"d:\program files\python3.8.6\python3.exe" "d:\Program Files\Python3.8.6\Scripts\django-admin.exe" startproject xxx
3、运行
python3 manage.py runserver 127.0.0.1:8000