我该如何处理这件事。我试过了:
python manage.py migrate
但我得到这样的错误:
_mysql_exceptions.OperationalError: (1050, "Table 'cms_cmsplugin' already exists")
感谢你的帮助。
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.admin
> django.contrib.admindocs
> django.contrib.messages
> django.contrib.staticfiles
> django.contrib.comments
> mptt
> south
> sekizai
> tinymce
> pyzen
> django_extensions
> haystack
> apps.helpful
> apps.homepage
> apps.mystery_image
> apps.old
> apps.science_news
> apps.search
Not synced (use migrations):
- cms
- menus
- cms.plugins.text
- cms.plugins.picture
- cms.plugins.link
- cms.plugins.file
- cms.plugins.snippet
- cms.plugins.googlemap
- easy_thumbnails
- filer
- reversion
- apps.blog
- apps.daily_content
- apps.essay_contest
- apps.glossary
- apps.newsletter
- apps.resources
(use ./manage.py migrate to migrate these)
答案 0 :(得分:2)
此表已存在于您可以使用的数据库中:
python manage.py migrate cms 001 --fake
“001”是声明表的迁移号