使用pycharm 运行 py manage.py migrate
报错
No migrations to apply解决
在本地项目文件删除db.sqlite3
运行
py manage.py makemigrations polls
报错
"Table 'django_content_type' already exists"
解决
加逗号,
INSTALLED_APPS = [
'polls.apps.PollsConfig',
再次运行
py manage.py makemigrations polls
报错
CASCADE() missing 4 required positional arguments: 'collector', 'field', 'sub_objs', and 'using'
解决
models.py 删除CASCADE()的 “()”



