问题:django.db.utils.OperationalError: (1142, "ALTER command denied to user 'test'@'localhost' for table 'django_content_type'")
解决:
GRANT ALL PRIVILEGES ON first.* TO 'test'@'localhost' IDENTIFIED BY '123456'
使用同步命令:
python manage.py makemigrations
python manage.py migrate