Cannot import either Scrapy's settings module or its scrapy.cfg

后端 未结 2 686
小蘑菇
小蘑菇 2021-01-17 17:41

This is a quite lengthy post, but after doing extensive research I couldn\'t find a solution. I have a mixed Django 1.4.1 / Scrapy 0.14.4 project on OSX 10.8 and I control S

相关标签:
2条回答
  • 2021-01-17 18:15

    there are 3 links inside the wiki of scrapy:

    the first one and second one are both addressing the problems with django and scrapy conflicting settings.

    hope this helps...

    even this question on SO addresses a lot of the settings-problems between django and scrapy

    0 讨论(0)
  • 2021-01-17 18:20

    If you look at the code branch that raises this exception and the definition of the closest_scrapy_cfg function that it calls, the only place scrapy is looking for your scrapy.cfg is in the dir you run the command from and any parent directory. You can maybe run os.chdir in your manage.py, or move your scrapy.cfg to the directory you're running from.

    0 讨论(0)
提交回复
热议问题