django 项目


环境

python3.10.8 + mysql 8.0

流程

  1. pip3 install virtualenv
  2. virtualenv env 创建虚拟环境
  3. cd env
  4. source ./bin/activate
  5. django-admin startproject mysite
  6. cd mysite
  7. pip3 install django
  8. pip3 install mysqlclient
  9. python3 manage.py migrate auth
  10. python3 manage.py migrate