Python 无法找到Django模型

Python 无法找到Django模型,python,django,scrapy,Python,Django,Scrapy,我试图将Django模型与scrapy一起使用,但我遇到了以下错误: sudo scrapy deploy default -p eScraper Building egg of eScraper-1370598403 'build/scripts-2.7' does not exist -- can't clean it zip_safe flag not set; analyzing archive contents... Deploying eScraper-1370598403 to h

我试图将Django模型与scrapy一起使用,但我遇到了以下错误:

sudo scrapy deploy default -p eScraper
Building egg of eScraper-1370598403
'build/scripts-2.7' does not exist -- can't clean it
zip_safe flag not set; analyzing archive contents...
Deploying eScraper-1370598403 to http://localhost:6800/addversion.json
Server response (200):
{"status": "error", "message": "ImportError: No module named eScraperInterfaceApp.models"}
我用过这个


它可以找到django project settings.py文件,但当我试图在items.py文件中导入django应用程序模型时,我遇到了错误…

如果没有看到您的代码,很难判断

您是否将路径设置为“/path/to/django/project/project”

您正在为项目使用djangoitem并正确导入所有模型


您已经编写了一个项目管道?

还有另一种简单的方法将您的scrapy项目内容放入Django项目目录中,然后您可以简单地执行您想要执行的操作..没有任何问题..但请记住放入scrapy项目内容而不是scrapy项目目录本身