Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django syncdb尝试删除不存在的表_Python_Django_Postgresql 9.3_Django Syncdb - Fatal编程技术网

Python Django syncdb尝试删除不存在的表

Python Django syncdb尝试删除不存在的表,python,django,postgresql-9.3,django-syncdb,Python,Django,Postgresql 9.3,Django Syncdb,我正在运行syncdb。Django找到一个我已经删除了相应表的内容类型: The following content types are stale and need to be deleted: installs | socialdata 回答“是”继续后,Django尝试删除一个多年前已删除的表tagging\u taggeditem 我已经检查了django\u content\u type表,但它没有指向旧表的条目 有什么想法吗? (django 1.6) 我发现了一个仍然

我正在运行
syncdb
。Django找到一个我已经删除了相应表的内容类型:

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

    installs | socialdata
回答“是”继续后,Django尝试删除一个多年前已删除的表
tagging\u taggeditem

我已经检查了
django\u content\u type
表,但它没有指向旧表的条目

有什么想法吗?

(django 1.6)

我发现了一个仍然有旧导入的文件:

from tagging import models as taggingmodels

删除后,
syncdb
运行正常。

您是否仍安装了标签应用程序?现在根本没有标签应用程序。很抱歉,我想不出Django为什么会继续引用这些型号。你有没有为任何可能的匹配模型做过代码库的grep/ack/grin?是的,我也删除了旧的.pyc文件;你必须提供一些进一步的信息。这可能会被当作一个离题的话题:调试。对不起,我再也帮不上忙了:)
from tagging import models as taggingmodels