0

I am trying to use Django model with scrapy but i am getting this error:

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"}

I have used this post

It is able to find django project settings.py file but when i tried to import django app model in items.py file i am getting error...

4

2 回答 2

1

没有看到你的代码很难说。

你的路径设置为 '/path/to/django/project/project' 吗?

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

你写了一个项目管道?

于 2013-06-07T16:15:30.593 回答
1

还有另一种简单的方法将您的scrapy项目内容放入Django项目DIR,然后您可以简单地做您想做的事情..没有任何问题..但是请记住将scrapy项目内容而不是scrapy项目DIR本身..

于 2013-06-08T02:25:22.240 回答