scrapy-djangoitem icon indicating copy to clipboard operation
scrapy-djangoitem copied to clipboard

The SECRET_KEY setting must not be empty

Open surfer190 opened this issue 8 years ago • 2 comments

When opening scrapy shell or running crawl I get an error requesting the SECRET_KEY from django

raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.

surfer190 avatar Oct 21 '15 15:10 surfer190

Adding to settings:

SECRET_KEY = 'some-random-key'

fixes it but is it necessary?

surfer190 avatar Oct 21 '15 15:10 surfer190

https://docs.djangoproject.com/en/1.8/ref/settings/#secret-key In short, it is. The issue is related to django tho, not to scrapy.

cdvv7788 avatar Nov 03 '15 14:11 cdvv7788