简体   繁体   中英

Django syncdb tries to delete table that does not exist

I am running syncdb . Django finds a content type where I have deleted the corresponding table already:

The following content types are stale and need to be deleted:

    installs | socialdata

After answering 'yes' to continue, Django tries to delete a table tagging_taggeditem that's been removed ages ago.

I have checked the django_content_type table, but it has no entry pointing to that old table.

Any ideas?

(django 1.6)

pip freeze | grep tagging
django-tagging==0.3.1

and I found a file that still had an old import:

from tagging import models as taggingmodels

After removing that syncdb runs fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM