- 使用python3
- 安装venv,参考:https://docs.djangoproject.com/en/3.1/intro/contributing/
- 进入venv,安装django(可安装指定版本): pip3 install Django==2.2.0
- python3 manage.py makemigrations sheet
- python3 manage.py migrate sheet
- 后续先进入venv: source ~/.virtualenvs/djangodev/bin/activate && cd /Users/hongxiaoqiang/.virtualenvs/djangode