Is it possible to access my django models inside of a Scrapy pipeline, so that I can save my scraped data straight to my model?
I\'ve seen this, but I don\'t really
setup-environ is deprecated. You may need to do the following in scrapy's settings file for newer versions of django 1.4+
setup-environ
def setup_django_env(): import sys, os, django sys.path.append('/path/to/django/myapp') os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' django.setup()