Django和South:使用south使syncdb显示myapp为'not synced(use migration)'

时间:2013-01-03 20:28:48

标签: django django-south

当我运行./manage.py syncdb时,它说没有同步(使用迁移)。但是,当我跑

$ ./manage.py schemamigration myapp --auto
Nothing seems to have changed
$ ./manage.py migrate
blah blah, nothing to migrate

根据this thread,我尝试重置南以解决问题。这是我做的:

$ rm -r appname/migrations/ 
$ ./manage.py reset south
$ ./manage.py syncdb
    (at this point it shows all apps as synced)
$ ./manage.py convert_to_south myapp
blah blah, App 'blog' converted.
$ ./manage.py syncdb
    (at this point it shows myapp as not synced)

运行schemamigration>迁移具有与以前相同的效果(没有,仍未注册为同步)。 从好的方面来看,该应用程序仍然可以正常工作,我只是担心这会导致问题。知道发生了什么以及如何解决它?这真的是一个问题吗?如果有帮助,我正在使用SQLite3和Django 1.4.2。

0 个答案:

没有答案