I\'m trying to follow the method here to \'Scrapy\' data from the web and simultaneously save that data directly to my Django database using Scrapy\'s item pipeline.
Try setting this in your Spider's settings.py:
import os import sys sys.path.append('/home/gchorn/webapps/django_app') os.environ['DJANGO_SETTINGS_MODULE'] = 'django_project.settings'
Then you can import your model classes like:
from django_project.app1.models import some_model