问题描述
Django 3.1.4使用mysql数据库,进行数据迁移时,报错:
(venv) xxx@xxx-MacBook-Pro django3 % python manage.py makemigrations user
File "manage.py", line 17
) from exc
^
SyntaxError: invalid syntax
解决办法
将 python 改为 python3
python3 manage.py makemigrations app名称
执行结果: