2011-08-12 265 views
0

我該如何處理這個問題。我tryed:django遷移問題

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

看看http://stackoverflow.com/遷移數問題/ 4840102 /如何先得我向南的遷移-犯規工作換的Django/4840262#4840262 –

回答

2

此表已在數據庫中,你可以使用:

python manage.py migrate cms 001 --fake 

「001」對應於表聲明